From: Hangbin Liu <liuhangbin@gmail.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: netdev@vger.kernel.org, "David S . Miller" <davem@davemloft.net>,
David Ahern <dsahern@kernel.org>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Ido Schimmel <idosch@idosch.org>,
Nikolay Aleksandrov <razor@blackwall.org>,
Roopa Prabhu <roopa@nvidia.com>
Subject: Re: [RFC Draft PATCH net-next 0/1] Bridge doc update
Date: Thu, 14 Sep 2023 11:06:08 +0800 [thread overview]
Message-ID: <ZQJ4oFoPFqbr09O7@Laptop-X1> (raw)
In-Reply-To: <20230913042224.1e44dcaa@fedora>
On Wed, Sep 13, 2023 at 04:22:24AM -0700, Stephen Hemminger wrote:
> On Wed, 13 Sep 2023 17:28:52 +0800
> Hangbin Liu <liuhangbin@gmail.com> wrote:
>
> > Hi,
> >
> > After a long busy period. I got time to check how to update the
> > bridge doc. Here is the previous discussion we made[1].
> >
> > In this update. I plan to convert all the bridge description/comments
> > to the kernel headers. And add sphinx identifiers in the doc to show
> > them directly. At the same time, I wrote a script to convert the
> > description in kernel header file to iproute2 man doc. With this,
> > there is no need to maintain the doc in 2 places.
> >
> > For the script. I use python docutils to read the rst comments. When
> > dump the man page. I do it manually to match the current ip link man
> > page style. I tried rst2man, but the generated man doc will break the
> > current style. If you have any other better way, please tell me.
> >
> > [1]
> > https://lore.kernel.org/netdev/5ddac447-c268-e559-a8dc-08ae3d124352@blackwall.org/
> >
> >
> > Hangbin Liu (1):
> > Doc: update bridge doc
> >
> > Documentation/networking/bridge.rst | 85 ++++++++++--
> > include/uapi/linux/if_bridge.h | 24 ++++
> > include/uapi/linux/if_link.h | 194
> > ++++++++++++++++++++++++++++ 3 files changed, 293 insertions(+), 10
> > deletions(-)
> >
>
> Not sure this is good idea.
> - you are special casing bridge documentation and there is lots of
> other parts of iproute2
Yes, the patch's purpose is to save the work for bridge doc(at present).
So only the bridge part of iproute2 man page will be updated. I added a
tag at the start/end of the bridge part. Other parts will not be touched.
> - you are introducing a dependency on python in iproute2
There is no need to build it. I put it in the tools folder. Any one can
choose to use or not use it. So I don't think it count for dependency.
> - the kernel headers in iproute2 come from sanitized kernel headers. So
> fixing the documentation would take longer.
It doesn't matter. The python script only grab the attr description from
net-next and convert it to man doc. It doesn't care about the kernel
header in iproute2.
>
> What problem is this trying to solve?
The bridge doc in kernel[1] is too old. There are a lot of details hide in
the kernel code and new developer is hard to catch up. So the kernel bridge
doc page need an update.
You could say the iproute2 bridge documentation is new and updated. We can
take it as the new bridge doc. But iprotue2 bridge doc only contains uAPI.
The kernel API doc is still needed.
On the other hand, the bridge developers already speed a lot effort on iproute2
bridge documentation. It would introduce more work and complex to maintain
the kernel and bridge doc at the same time.
So I suggest to only maintain the kernel doc. And convert the kernel part
directly to iproute2 man page. With this, we can maintain the doc in one
place and update them both on kernel and iproute2.
[1] https://www.kernel.org/doc/Documentation/networking/bridge.rst
Thanks
Hangbin
next prev parent reply other threads:[~2023-09-14 3:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 9:28 [RFC Draft PATCH net-next 0/1] Bridge doc update Hangbin Liu
2023-09-13 9:28 ` [RFC Draft PATCH net-next] Doc: update bridge doc Hangbin Liu
2023-09-13 9:28 ` [RFC Draft PATCH iproute2-next] tools: add a tool to generate bridge man doc Hangbin Liu
2023-09-13 11:22 ` [RFC Draft PATCH net-next 0/1] Bridge doc update Stephen Hemminger
2023-09-14 3:06 ` Hangbin Liu [this message]
2023-09-13 11:25 ` Stephen Hemminger
2023-09-20 9:19 ` Hangbin Liu
2023-09-20 10:38 ` Nikolay Aleksandrov
2023-09-20 14:17 ` Hangbin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZQJ4oFoPFqbr09O7@Laptop-X1 \
--to=liuhangbin@gmail.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=idosch@idosch.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
--cc=roopa@nvidia.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).