Netdev List
 help / color / mirror / Atom feed
From: Pranav Tathe <pranavtathe30@gmail.com>
To: netdev@vger.kernel.org
Cc: David Ahern <dsahern@kernel.org>,
	Stephen Hemminger <stephen@networkplumber.org>,
	Pranav Tathe <pranavtathe30@gmail.com>
Subject: Re: [PATCH iproute2-next] ip-link: document BOND type options in man page
Date: Mon, 23 Nov 2026 11:03:24 +0530	[thread overview]
Message-ID: <20261123053324.24403-1-pranavtathe30@gmail.com> (raw)
In-Reply-To: <20261116143553.1b051ab9@phoenix.local>

On Sun, 16 Nov 2026 14:35:53 -0800 Stephen Hemminger <stephen@networkplumber.org> wrote:

> There is a tradeoff between more complete man page and duplicating what
> is already in the kernel documentation. I would rather have kernel doc
> as single source of truth and keep the ip man page to a minimum.

Agreed, and thanks for the detailed review. I've just posted v2 reworked
along these lines - the man page now defers to the kernel bonding
documentation for semantics, defaults and ranges rather than restating
them.

> The miimon entry in this very patch shows how that goes:
[...]
> 0 is right for balance-rr, active-backup, balance-xor and broadcast, but
> not for the other three. Since
>
>   c1f897ce186a ("bonding: set default miimon value for non-arp modes if
>                 not set")   [v4.18-rc7]

Good catch - that's exactly the kind of drift you describe, and I'd
have copied it into a third place. In v2 miimon (and every other option)
no longer states a default at all, so there's nothing to fall out of
sync.

> So for v2, I would keep the synopsis and the option list, [...] and cut
> the descriptions back to one line per option [...]
>
> Then one pointer after the synopsis covers all of it:
[...]

Done. I used your suggested pointer paragraph verbatim after the
synopsis, pointing to Documentation/networking/bonding.rst and the
kernel.org HTML docs.

Summary of changes in v2:
- Synopsis and option list unchanged (as you confirmed they're complete).
- Each option description cut to one line - what it does and which modes
  it applies to - with defaults and valid ranges left to the kernel.
- Added the pointer paragraph to the kernel bonding docs after the
  synopsis.
- Renders with no new groff warnings.

Thanks again,
Pranav

  reply	other threads:[~2026-11-23  5:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 14:25 [PATCH iproute2-next] ip-link: document BOND type options in man page Pranav Tathe
2026-11-16 22:35 ` Stephen Hemminger
2026-11-23  5:33   ` Pranav Tathe [this message]
2026-11-23  5:29 ` [PATCH iproute2-next v2] " Pranav Tathe

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=20261123053324.24403-1-pranavtathe30@gmail.com \
    --to=pranavtathe30@gmail.com \
    --cc=dsahern@kernel.org \
    --cc=netdev@vger.kernel.org \
    --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