File man-ip-rule.8-Further-clarify-how-to-interpret-prior.patch of Package iproute2.7171
From: Phil Sutter <phil@nwl.cc>
Date: Mon, 24 Apr 2017 17:35:37 +0200
Subject: man: ip-rule.8: Further clarify how to interpret priority value
Patch-mainline: v4.11.0
Git-commit: 843fc90068270f4f3e5c44c49c13653e4cf1e6e0
References: bsc#990635
Despite the past changes, users seemed to get confused by the seemingly
contradictory relation of priority value and actual rule priority.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Michal Kubecek <mkubecek@suse.cz>
---
man/man8/ip-rule.8 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/man/man8/ip-rule.8 b/man/man8/ip-rule.8
index dc93ffb0adae..19725da80bae 100644
--- a/man/man8/ip-rule.8
+++ b/man/man8/ip-rule.8
@@ -86,7 +86,10 @@ Each policy routing rule consists of a
.B selector
and an
.B action predicate.
-The RPDB is scanned in order of decreasing priority. The selector
+The RPDB is scanned in order of decreasing priority (note that lower number
+means higher priority, see the description of
+.I PREFERENCE
+below). 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.
@@ -218,7 +221,8 @@ value to match.
.BI priority " PREFERENCE"
the priority of this rule.
.I PREFERENCE
-is an unsigned integer value, higher number means lower priority. Each rule
+is an unsigned integer value, higher number means lower priority, and rules get
+processed in order of increasing number. Each rule
should have an explicitly set
.I unique
priority value.
--
2.13.2