Bridge doc update
Subsystems (4)
cover Bridge doc update
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/[email protected]/
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(-)
Signature · 1 line
2.41.0
RFC PATCH 1/1 Doc: update bridge doc
This is an example of bridge doc update. In this example I use the sphinx identifier to insert the structure description in the doc.
I plan to copy all the iproute2 bridge related man docs first. Please tell me if other doc I need to add.
--- 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(-)
Documentation/networking/bridge.rst +75 -10
@@ -4,18 +4,83 @@ Ethernet Bridging ================= -In order to use the Ethernet bridging functionality, you'll need the -userspace tools. +Introduction +============ -Documentation for Linux bridging is on: - https://wiki.linuxfoundation.org/networking/bridge +A bridge is a way to connect two Ethernet segments together in a protocol +independent way. Packets are forwarded based on Ethernet address, rather +than IP address (like a router). Since forwarding is done at Layer 2, all +protocols can go transparently through a bridge. -The bridge-utilities are maintained at: - git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git +Bridge internals +================ -Additionally, the iproute2 utilities can be used to configure -bridge devices. +.. kernel-doc:: include/uapi/linux/if_bridge.h + :identifiers: __bridge_info -If you still have questions, don't hesitate to post to the mailing list -(more info https://lists.linux-foundation.org/mailman/listinfo/bridge). +.. kernel-doc:: include/uapi/linux/if_bridge.h + :identifiers: __port_info + +Bridge uAPI +=========== + +Bridge netlink attributes +------------------------- + +.. kernel-doc:: include/uapi/linux/if_link.h + :doc: The bridge emum defination + +Bridge sysfs +------------ + +Most of them are same with netlink attributes. What about the read only +parameters like gc_timer, tcn_timer? Should we doc them? + +STP +=== + +Multicast +========= + +VLAN +==== + +Switchdev +========= + +Netfilter +========= + +FAQ +=== + +What does a bridge do? +---------------------- + +A bridge transparently relays traffic between multiple network interfaces. +In plain English this means that a bridge connects two or more physical +Ethernets together to form one bigger (logical) Ethernet. + +Is it protocol independent? +--------------------------- + +Yes. The bridge knows nothing about protocols, it only sees Ethernet frames. +As such, the bridging functionality is protocol independent, and there should +be no trouble relaying IPX, NetBEUI, IP, IPv6, etc. + +Contact Info +============ + +The code is currently maintained by Roopa Prabhu <[email protected]> and +Nikolay Aleksandrov <[email protected]>. Bridge bugs and enhancements +are discussed on the linux-netdev mailing list [email protected] and [email protected]. + +The list is open to anyone interested: http://vger.kernel.org/vger-lists.html#netdev + +External Links +============== + +The old Documentation for Linux bridging is on: +https://wiki.linuxfoundation.org/networking/bridge
include/uapi/linux/if_bridge.h +24 -0
@@ -52,6 +52,19 @@#define BR_STATE_FORWARDING 3#define BR_STATE_BLOCKING 4 +/** +* struct __bridge_info - the bridge information +* +* @designated_root: designated root +* +* @bridge_id: bridge id +* +* @root_path_cost: root path cost +* +* @max_age: max age +* +* @hello_time: hello time +*/ struct __bridge_info {__u64 designated_root;__u64 bridge_id;
@@ -74,6 +87,17 @@ struct __bridge_info {__u32 gc_timer_value; }; +/** +* struct __port_info - the bridge port information +* +* @designated_root: designated root +* +* @designated_bridge: designated bridge +* +* @port_id: port id +* +* @designated_port: designated port +*/ struct __port_info {__u64 designated_root;__u64 designated_bridge;
include/uapi/linux/if_link.h +194 -0
200 lines not on this page · raw message
Signature · 1 line
2.41.0
kernel test robot
build botRe: [RFC Draft PATCH net-next] Doc: update bridge doc
kernel test robot noticed the following build warnings:
Hi Hangbin,
[This is a private test report for your RFC patch.] kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Hangbin-Liu/Doc-update-bridge-doc/20230913-173039 base: net-next/main patch link: https://lore.kernel.org/r/20230913092854.1027336-2-liuhangbin%40gmail.com patch subject: [RFC Draft PATCH net-next] Doc: update bridge doc reproduce: (https://download.01.org/0day-ci/archive/20230914/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'forward_delay' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'bridge_max_age' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'bridge_hello_time' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'bridge_forward_delay' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'topology_change' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'topology_change_detected' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'root_port' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'stp_enabled' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'ageing_time' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'gc_interval' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'hello_timer_value' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'tcn_timer_value' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'topology_change_timer_value' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:88: warning: Function parameter or member 'gc_timer_value' not described in '__bridge_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'path_cost' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'designated_cost' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'state' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'top_change_ack' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'config_pending' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'unused0' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'message_age_timer_value' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'forward_delay_timer_value' not described in '__port_info' >> ./include/uapi/linux/if_bridge.h:115: warning: Function parameter or member 'hold_timer_value' not described in '__port_info'
vim +88 ./include/uapi/linux/if_bridge.h
607ca46e97a1b6 David Howells 2012-10-13 54
26bff9744d2e66 Hangbin Liu 2023-09-13 55 /**
26bff9744d2e66 Hangbin Liu 2023-09-13 56 * struct __bridge_info - the bridge information
26bff9744d2e66 Hangbin Liu 2023-09-13 57 *
26bff9744d2e66 Hangbin Liu 2023-09-13 58 * @designated_root: designated root
26bff9744d2e66 Hangbin Liu 2023-09-13 59 *
26bff9744d2e66 Hangbin Liu 2023-09-13 60 * @bridge_id: bridge id
26bff9744d2e66 Hangbin Liu 2023-09-13 61 *
26bff9744d2e66 Hangbin Liu 2023-09-13 62 * @root_path_cost: root path cost
26bff9744d2e66 Hangbin Liu 2023-09-13 63 *
26bff9744d2e66 Hangbin Liu 2023-09-13 64 * @max_age: max age
26bff9744d2e66 Hangbin Liu 2023-09-13 65 *
26bff9744d2e66 Hangbin Liu 2023-09-13 66 * @hello_time: hello time
26bff9744d2e66 Hangbin Liu 2023-09-13 67 */
607ca46e97a1b6 David Howells 2012-10-13 68 struct __bridge_info {
607ca46e97a1b6 David Howells 2012-10-13 69 __u64 designated_root;
607ca46e97a1b6 David Howells 2012-10-13 70 __u64 bridge_id;
607ca46e97a1b6 David Howells 2012-10-13 71 __u32 root_path_cost;
607ca46e97a1b6 David Howells 2012-10-13 72 __u32 max_age;
607ca46e97a1b6 David Howells 2012-10-13 73 __u32 hello_time;
607ca46e97a1b6 David Howells 2012-10-13 74 __u32 forward_delay;
607ca46e97a1b6 David Howells 2012-10-13 75 __u32 bridge_max_age;
607ca46e97a1b6 David Howells 2012-10-13 76 __u32 bridge_hello_time;
607ca46e97a1b6 David Howells 2012-10-13 77 __u32 bridge_forward_delay;
607ca46e97a1b6 David Howells 2012-10-13 78 __u8 topology_change;
607ca46e97a1b6 David Howells 2012-10-13 79 __u8 topology_change_detected;
607ca46e97a1b6 David Howells 2012-10-13 80 __u8 root_port;
607ca46e97a1b6 David Howells 2012-10-13 81 __u8 stp_enabled;
607ca46e97a1b6 David Howells 2012-10-13 82 __u32 ageing_time;
607ca46e97a1b6 David Howells 2012-10-13 83 __u32 gc_interval;
607ca46e97a1b6 David Howells 2012-10-13 84 __u32 hello_timer_value;
607ca46e97a1b6 David Howells 2012-10-13 85 __u32 tcn_timer_value;
607ca46e97a1b6 David Howells 2012-10-13 86 __u32 topology_change_timer_value;
607ca46e97a1b6 David Howells 2012-10-13 87 __u32 gc_timer_value;
607ca46e97a1b6 David Howells 2012-10-13 @88 };
607ca46e97a1b6 David Howells 2012-10-13 89
26bff9744d2e66 Hangbin Liu 2023-09-13 90 /**
26bff9744d2e66 Hangbin Liu 2023-09-13 91 * struct __port_info - the bridge port information
26bff9744d2e66 Hangbin Liu 2023-09-13 92 *
26bff9744d2e66 Hangbin Liu 2023-09-13 93 * @designated_root: designated root
26bff9744d2e66 Hangbin Liu 2023-09-13 94 *
26bff9744d2e66 Hangbin Liu 2023-09-13 95 * @designated_bridge: designated bridge
26bff9744d2e66 Hangbin Liu 2023-09-13 96 *
26bff9744d2e66 Hangbin Liu 2023-09-13 97 * @port_id: port id
26bff9744d2e66 Hangbin Liu 2023-09-13 98 *
26bff9744d2e66 Hangbin Liu 2023-09-13 99 * @designated_port: designated port
26bff9744d2e66 Hangbin Liu 2023-09-13 100 */
607ca46e97a1b6 David Howells 2012-10-13 101 struct __port_info {
607ca46e97a1b6 David Howells 2012-10-13 102 __u64 designated_root;
607ca46e97a1b6 David Howells 2012-10-13 103 __u64 designated_bridge;
607ca46e97a1b6 David Howells 2012-10-13 104 __u16 port_id;
607ca46e97a1b6 David Howells 2012-10-13 105 __u16 designated_port;
607ca46e97a1b6 David Howells 2012-10-13 106 __u32 path_cost;
607ca46e97a1b6 David Howells 2012-10-13 107 __u32 designated_cost;
607ca46e97a1b6 David Howells 2012-10-13 108 __u8 state;
607ca46e97a1b6 David Howells 2012-10-13 109 __u8 top_change_ack;
607ca46e97a1b6 David Howells 2012-10-13 110 __u8 config_pending;
607ca46e97a1b6 David Howells 2012-10-13 111 __u8 unused0;
607ca46e97a1b6 David Howells 2012-10-13 112 __u32 message_age_timer_value;
607ca46e97a1b6 David Howells 2012-10-13 113 __u32 forward_delay_timer_value;
607ca46e97a1b6 David Howells 2012-10-13 114 __u32 hold_timer_value;607ca46e97a1b6 David Howells 2012-10-13 @115 };607ca46e97a1b6 David Howells 2012-10-13 116
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
RFC PATCH 1/1 tools: add a tool to generate bridge man doc
In reply to Hangbin LiuThis tool will generate the ip link bridge parameters and find related attr description in if_link.h. And convert to the new man doc.
To use it. You need to run the script first before your patch. With this we can update the man page to latest version. e.g.
./generate_bridge_man.py -i iproute2_dir -n net-next_dir
The script will generate a ip-link.8.out page. You can check if it's OK to move to ip-link.8.in.
After adding new parameter. You need to re-run the script to generate the man doc from net-next header file.
The script check the existing parameter. So if the attr in net-next has not added to iproute2, it will not generate the man doc.
--- man/man8/ip-link.8.in | 2 + tools/generate_bridge_man.py | 188 +++++++++++++++++++++++++++++++++++ 2 files changed, 190 insertions(+) create mode 100755 tools/generate_bridge_man.py
man/man8/ip-link.8.in +2 -0
@@ -1611,6 +1611,7 @@ For a link of type the following additional arguments are supported: .BI "ip link add " DEVICE " type bridge " +.\" bridge man doc starts [ .BI ageing_time " AGEING_TIME " ] [
@@ -1887,6 +1888,7 @@ arptables hooks on the bridge. .in -8 +.\" bridge man doc ends .TP MACsec Type Support
tools/generate_bridge_man.py new file +188 -0
188 lines not on this page · raw message
Signature · 1 line
2.41.0
Quoted 20 lines · On Wed, 13 Sep 2023 17:28:52 +0800 Hangbin Liu <[email protected]> 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.
Quoted 9 lines
Hangbin Liu (1):
Doc: update bridge docDocumentation/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
- you are introducing a dependency on python in iproute2
- the kernel headers in iproute2 come from sanitized kernel headers. So fixing the documentation would take longer.
What problem is this trying to solve?
Quoted 33 lines · Stephen Hemminger
Quoted 20 lines · On Wed, 13 Sep 2023 17:28:52 +0800 Hangbin Liu <[email protected]> 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.
Quoted 9 lines
Hangbin Liu (1):
Doc: update bridge docDocumentation/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(-)
Quoted 3 lines
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.
Quoted 1 line
- 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.
Quoted 2 lines
- 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.
Quoted 2 lines
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
Quoted 20 lines · On Wed, 13 Sep 2023 17:28:52 +0800 Hangbin Liu <[email protected]> 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.
Quoted 9 lines
Hangbin Liu (1):
Doc: update bridge docDocumentation/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
- you are introducing a dependency on python in iproute2
- the kernel headers in iproute2 come from sanitized kernel headers. So fixing the documentation would take longer.
What problem is this trying to solve
Hi Nikolay, Roopa,
Do you have any comments for this RFC?
Thanks
Hangbin
Quoted 30 lines · Hangbin Liu
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/[email protected]/
Hangbin Liu (1):
Doc: update bridge docDocumentation/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(-)Signature · 1 line
2.41.0
Nikolay Aleksandrov
maintainerQuoted 37 lines · Hangbin Liu
Hi Nikolay, Roopa,
Do you have any comments for this RFC?
Thanks
HangbinQuoted 30 lines · Hangbin Liu
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/[email protected]/
Hangbin Liu (1):
Doc: update bridge docDocumentation/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(-)Signature · 1 line
2.41.0
Hi Hangbin,
I support all efforts to improve documentation, but I do share the same concerns that Stephen has already voiced. I don't think we should be generating the man page from the kernel docs, IMO it would be simpler and easier for everyone to support both docs - one is for the user-space
iproute2 commands, the other could go into the kernel api details. All
attribute descriptions can still be added to headers, that would be very
valuable on its own. I prefer to have the freedom to change the docs format in any way, generating them from comments is kind of limiting.
The purpose of each document is different and it will be difficult
to combine them for a man page. It would be much easier for everyone
to add user-related command descriptions and examples in iproute2's documentation, and to add kernel-specific (or uapi) documentation to the
kernel doc. We can add references for each with a short description.
W.r.t the kernel doc topics covered, I think the list is a good start.
Thank you,
Nik
Quoted 19 lines · Nikolay Aleksandrov
Quoted 12 lines · Hangbin Liu
Quoted 11 lines
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.
Quoted 7 lines
Quoted 7 lines
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.
Quoted 14 lines
Hi Hangbin,
I support all efforts to improve documentation, but I do share the same concerns that Stephen has already voiced. I don't think we should be generating the man page from the kernel docs, IMO it would be simpler and easier for everyone to support both docs - one is for the user-space iproute2 commands, the other could go into the kernel api details. All attribute descriptions can still be added to headers, that would be very valuable on its own. I prefer to have the freedom to change the docs format in any way, generating them from comments is kind of limiting. The purpose of each document is different and it will be difficult to combine them for a man page. It would be much easier for everyone to add user-related command descriptions and examples in iproute2's documentation, and to add kernel-specific (or uapi) documentation to the kernel doc. We can add references for each with a short description.
Hi Nikolay,
Thanks for the feedback. I agree that it's more reasonable to have different docs for user-space and kernel api. As long as our bridge developers satisfied to maintain these 2 docs at the same time, I'm totally OK to drop this bloated convert tool.
Quoted 1 line
W.r.t the kernel doc topics covered, I think the list is a good start.
Thanks, I will add more parts and re-post it next month.
Regards
Hangbin