net: fib_rules: Add DSCP mask support
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | net: fib_rules: Add DSCP mask attributeinclude/ net/ | +2 | 0 replies | Applied |
| 2/6 | ipv4: fib_rules: Add DSCP mask matchingnet/ | +44 | 0 replies | Applied |
| 3/6 | ipv6: fib_rules: Add DSCP mask matchingnet/ | +43 | 0 replies | Applied |
| 4/6 | net: fib_rules: Enable DSCP mask usagenet/ | +1 | 0 replies | Applied |
| 5/6 | netlink: specs: Add FIB rule DSCP mask attributeDocumentation/ | +5 | 0 replies | Applied |
| 6/6 | selftests: fib_rule_tests: Add DSCP mask match teststools/ | +38 | 0 replies | Applied |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Petr Machata | Guillaume Nault |
|---|---|---|
| Series | R-b | |
| 1/6 | R-b | |
| 2/6 | R-b | |
| 3/6 | R-b | |
| 4/6 | R-b | |
| 5/6 | R-b | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/6] net: fib_rules: Add DSCP mask support
In some deployments users would like to encode path information into certain bits of the IPv6 flow label, the UDP source port and the DSCP field and use this information to route packets accordingly.
Redirecting traffic to a routing table based on specific bits in the DSCP field is not currently possible. Only exact match is currently supported by FIB rules.
This patchset extends FIB rules to match on the DSCP field with an optional mask.
Patches #1-#5 gradually extend FIB rules to match on the DSCP field with an optional mask.
Patch #6 adds test cases for the new functionality.
iproute2 support can be found here [1].
[1] https://github.com/idosch/iproute2/tree/submit/fib_rule_mask_v1
Ido Schimmel (6):
net: fib_rules: Add DSCP mask attribute
ipv4: fib_rules: Add DSCP mask matching
ipv6: fib_rules: Add DSCP mask matching
net: fib_rules: Enable DSCP mask usage
netlink: specs: Add FIB rule DSCP mask attribute
selftests: fib_rule_tests: Add DSCP mask match tests
Documentation/netlink/specs/rt_rule.yaml | 5 ++ include/uapi/linux/fib_rules.h | 1 + net/core/fib_rules.c | 1 + net/ipv4/fib_rules.c | 47 +++++++++++++++++-- net/ipv6/fib6_rules.c | 45 +++++++++++++++++- tools/testing/selftests/net/fib_rule_tests.sh | 38 +++++++++++++++ 6 files changed, 132 insertions(+), 5 deletions(-)
Signature · 1 line
2.48.1