Skip to content

iprule: Add mask support for L4 ports and DSCP

Ido Schimmel netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* Patch #4: Do not duplicate port parsing in iprule_port_parse().
* Patch #4: s/supports/Supports/ in man page.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Sync uAPI headersinclude/uapi/linux/fib_rules.h+3 -00 replies
2/5iprule: Move port parsing to a functionip/iprule.c+27 -300 replies
3/5iprule: Allow specifying ports in hexadecimal notationip/iprule.c+3 -30 replies
4/5iprule: Add port mask supportip/iprule.c man/man8/ip-rule.8.in+93 -171 reply
5/5iprule: Add DSCP mask supportip/iprule.c man/man8/ip-rule.8.in+60 -220 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPetr MachataGuillaume Nault
SeriesR-b
1/5
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH iproute2-next v2 0/5] iprule: Add mask support for L4 ports and DSCP

Add mask support for L4 ports and DSCP in ip-rule following kernel commit a60a27c7849f ("Merge branch 'net-fib_rules-add-port-mask-support'") and commit 27422c373897 ("Merge branch 'net-fib_rules-add-dscp-mask-support'").

Patches #1-#3 are preparations.

Patches #4 and #5 add mask support for L4 ports and DSCP, respectively. See the commit messages for example usage and output.

v2:

* Patch #4: Do not duplicate port parsing in iprule_port_parse().
* Patch #4: s/supports/Supports/ in man page.

Ido Schimmel (5):
Sync uAPI headers
iprule: Move port parsing to a function
iprule: Allow specifying ports in hexadecimal notation
iprule: Add port mask support
iprule: Add DSCP mask support

 include/uapi/linux/fib_rules.h |   3 +
 ip/iprule.c                    | 216 ++++++++++++++++++++++++---------
 man/man8/ip-rule.8.in          |  23 ++--
 3 files changed, 178 insertions(+), 64 deletions(-)
Signature · 1 line
2.48.1