net: fib_rules: Add port 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 8 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | net: fib_rules: Add port mask attributesinclude/ net/ | +4 | 0 replies | Applied |
| 2/8 | net: fib_rules: Add port mask supportinclude/ net/ | +74 | 0 replies | Applied |
| 3/8 | ipv4: fib_rules: Add port mask matchinginclude/ net/ | +15 | 0 replies | Applied |
| 4/8 | ipv6: fib_rules: Add port mask matchingnet/ | +4 | 0 replies | Applied |
| 5/8 | net: fib_rules: Enable port mask usagenet/ | +2 | 3 replies | Applied |
| 6/8 | netlink: specs: Add FIB rule port mask attributesDocumentation/ | +10 | 0 replies | Applied |
| 7/8 | selftests: fib_rule_tests: Add port range match teststools/ | +16 | 0 replies | Applied |
| 8/8 | selftests: fib_rule_tests: Add port mask match teststools/ | +20 | 0 replies | Applied |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Petr Machata | Guillaume Nault | David Ahern |
|---|---|---|---|
| Series | R-b | R-b | |
| 1/8 | R-b | ||
| 2/8 | R-b | ||
| 3/8 | R-b | ||
| 4/8 | R-b | ||
| 5/8 | R-b | ||
| 6/8 | R-b | ||
| 7/8 | R-b | ||
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net-next 0/8] net: fib_rules: Add port 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 UDP source port is not currently possible. Only exact match and range are currently supported by FIB rules.
This patchset extends FIB rules to match on layer 4 ports with an optional mask. The mask is not supported when matching on a range. A future patchset will add support for matching on the DSCP field with an optional mask.
Patches #1-#6 gradually extend FIB rules to match on layer 4 ports with an optional mask.
Patches #7-#8 add test cases for FIB rule port matching.
iproute2 support can be found here [1].
[1] https://github.com/idosch/iproute2/tree/submit/fib_rule_mask_v1
Ido Schimmel (8):
net: fib_rules: Add port mask attributes
net: fib_rules: Add port mask support
ipv4: fib_rules: Add port mask matching
ipv6: fib_rules: Add port mask matching
net: fib_rules: Enable port mask usage
netlink: specs: Add FIB rule port mask attributes
selftests: fib_rule_tests: Add port range match tests
selftests: fib_rule_tests: Add port mask match tests
Documentation/netlink/specs/rt_rule.yaml | 10 +++ include/net/fib_rules.h | 19 +++++ include/uapi/linux/fib_rules.h | 2 + net/core/fib_rules.c | 69 ++++++++++++++++++- net/ipv4/fib_rules.c | 8 +-- net/ipv6/fib6_rules.c | 8 +-- tools/testing/selftests/net/fib_rule_tests.sh | 36 ++++++++++ 7 files changed, 143 insertions(+), 9 deletions(-)
Signature · 1 line
2.48.1