]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Merge branch 'net-fib_rules-add-port-mask-support'
authorJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 02:43:41 +0000 (18:43 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 02:43:42 +0000 (18:43 -0800)
commita60a27c7849fc069b7ef5f1d52eafde39be6fd7a
tree30d31c22a0abab5873bdfa10dd1d2b07ed56cfac
parentdfc4b67db06ce272d670cd704c13c741f38d246e
parentf5d783c088754eb3dc32b3d927229d6e6c6c0f4e
Merge branch 'net-fib_rules-add-port-mask-support'

Ido Schimmel says:

====================
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
====================

Link: https://patch.msgid.link/20250217134109.311176-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>