From: Phil Sutter <phil@nwl.cc>
To: Michal Kubecek <mkubecek@suse.cz>
Cc: Stephen Hemminger <stephen@networkplumber.org>,
Iskren Chernev <iskren@imo.im>,
netdev@vger.kernel.org
Subject: Re: [PATCH bug-fix] iproute: fix documentation for ip rule scan order
Date: Thu, 8 Sep 2016 14:43:17 +0200 [thread overview]
Message-ID: <20160908124317.GK5252@orbyte.nwl.cc> (raw)
In-Reply-To: <20160908114808.GB10034@unicorn.suse.cz>
On Thu, Sep 08, 2016 at 01:48:08PM +0200, Michal Kubecek wrote:
> On Thu, Sep 08, 2016 at 12:33:03PM +0200, Phil Sutter wrote:
> > On Thu, Sep 08, 2016 at 11:59:55AM +0200, Michal Kubecek wrote:
> > >
> > > I'm sorry I didn't notice before but this just reverts the change done
> > > by commit 49572501664d ("iproute2: clarification of various man8 pages").
> > > IMHO the problem is that both versions are equally confusing as the word
> > > "priority" can be understood in two different senses.
> > >
> > > How about more explicit formulation, e.g.
> > >
> > > ... in order of decreasing logical priority (i.e. increasing numeric
> > > values).
> > >
> > > Would that be better?
> >
> > Looks like the real issue is missing definition of priority. What about
> > this:
> >
> > diff --git a/man/man8/ip-rule.8 b/man/man8/ip-rule.8
> > index 3508d8090fd2c..13fe9f7f892ee 100644
> > --- a/man/man8/ip-rule.8
> > +++ b/man/man8/ip-rule.8
> > @@ -93,7 +93,7 @@ Each policy routing rule consists of a
> > .B selector
> > and an
> > .B action predicate.
> > -The RPDB is scanned in order of increasing priority. The selector
> > +The RPDB is scanned in order of decreasing priority. The selector
> > of each rule is applied to {source address, destination address, incoming
> > interface, tos, fwmark} and, if the selector matches the packet,
> > the action is performed. The action predicate may return with success.
> > @@ -221,8 +221,10 @@ value to match.
> >
> > .TP
> > .BI priority " PREFERENCE"
> > -the priority of this rule. Each rule should have an explicitly
> > -set
> > +the priority of this rule.
> > +.I PREFERENCE
> > +is an unsigned integer value, higher number means lower priority. Each rule
> > +should have an explicitly set
> > .I unique
> > priority value.
> > The options preference and order are synonyms with priority.
>
> Formally, this would be certainly sufficient. But for clarity (and
> inattentive readers), I would still prefer to be more explicit in the
> first hunk, e.g.
>
> ... in order of decreasing priority (increasing PREFERENCE values).
I'm fine with that, though fear mentioning PREFERENCE here might confuse
readers. I'd go with "i.e. increasing numeric values" instead. But after
all this is quite a discussion for such a tiny bit of documentation. :)
Cheers, Phil
next prev parent reply other threads:[~2016-09-08 12:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-31 0:32 [PATCH bug-fix] iproute: fix documentation for ip rule scan order Iskren Chernev
2016-09-01 16:04 ` Stephen Hemminger
2016-09-08 9:59 ` Michal Kubecek
2016-09-08 10:33 ` Phil Sutter
2016-09-08 11:48 ` Michal Kubecek
2016-09-08 12:43 ` Phil Sutter [this message]
2016-09-20 16:38 ` Stephen Hemminger
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=20160908124317.GK5252@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=iskren@imo.im \
--cc=mkubecek@suse.cz \
--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;
as well as URLs for NNTP newsgroup(s).