Skip to content

net: fib_rules: Add flow label selector support

Ido Schimmel netdev 1 version Applied

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

  1. v1 Latest9 patches 7 repliesApplied 9/9

Patches in v1 All 9 applied

#Subject and filesSizeRepliesApplied
1/9net: fib_rules: Add flow label selector attributesinclude/uapi/linux/fib_rules.h net/core/fib_rules.c+4 -00 repliesApplied
2/9ipv4: fib_rules: Reject flow label attributesnet/ipv4/fib_rules.c+6 -00 repliesApplied
3/9ipv6: fib_rules: Add flow label supportnet/ipv6/fib6_rules.c+55 -25 repliesApplied
4/9net: fib_rules: Enable flow label selector usagenet/core/fib_rules.c+2 -20 repliesApplied
5/9netlink: specs: Add FIB rule flow label attributesDocumentation/netlink/specs/rt_rule.yaml+12 -00 repliesApplied
6/9ipv6: Add flow label to route get requestsinclude/uapi/linux/rtnetlink.h net/ipv6/route.c+20 -10 repliesApplied
7/9netlink: specs: Add route flow label attributeDocumentation/netlink/specs/rt_route.yaml+7 -00 repliesApplied
8/9tracing: ipv6: Add flow label to fib6_table_lookup tracepointinclude/trace/events/fib6.h+5 -30 repliesApplied
9/9selftests: fib_rule_tests: Add flow label selector match teststools/testing/selftests/net/fib_rule_tests.sh+31 -00 repliesApplied

Reviews trailers per patch

All 9 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/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/9] net: fib_rules: Add flow label selector 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 and use this information to route packets accordingly.

Redirecting traffic to a routing table based on the flow label is not currently possible with Linux as FIB rules cannot match on it despite the flow label being available in the IPv6 flow key.

This patchset extends FIB rules to match on the flow label with a mask. Future patches will add mask attributes to L4 ports and DSCP matches.

Patches #1-#5 gradually extend FIB rules to match on the flow label.

Patches #6-#7 allow user space to specify a flow label in route get requests. This is useful for both debugging and testing.

Patch #8 adjusts the fib6_table_lookup tracepoint to print the flow label to the trace buffer for better observability.

Patch #9 extends the FIB rule selftest with flow label test cases while utilizing the route get functionality from patch #6.

Ido Schimmel (9):
net: fib_rules: Add flow label selector attributes
ipv4: fib_rules: Reject flow label attributes
ipv6: fib_rules: Add flow label support
net: fib_rules: Enable flow label selector usage
netlink: specs: Add FIB rule flow label attributes
ipv6: Add flow label to route get requests
netlink: specs: Add route flow label attribute
tracing: ipv6: Add flow label to fib6_table_lookup tracepoint
selftests: fib_rule_tests: Add flow label selector match tests

 Documentation/netlink/specs/rt_route.yaml     |  7 +++
 Documentation/netlink/specs/rt_rule.yaml      | 12 ++++
 include/trace/events/fib6.h                   |  8 ++-
 include/uapi/linux/fib_rules.h                |  2 +
 include/uapi/linux/rtnetlink.h                |  1 +
 net/core/fib_rules.c                          |  2 +
 net/ipv4/fib_rules.c                          |  6 ++
 net/ipv6/fib6_rules.c                         | 57 ++++++++++++++++++-
 net/ipv6/route.c                              | 20 ++++++-
 tools/testing/selftests/net/fib_rule_tests.sh | 31 ++++++++++
 10 files changed, 140 insertions(+), 6 deletions(-)
Signature · 1 line
2.47.1