From: David Ahern <dsahern@kernel•org>
To: Ido Schimmel <idosch@nvidia•com>, netdev@vger•kernel.org
Cc: davem@davemloft•net, kuba@kernel•org, pabeni@redhat•com,
edumazet@google•com, horms@kernel•org, donald.hunter@gmail•com,
petrm@nvidia•com, gnault@redhat•com
Subject: Re: [PATCH net-next 0/8] net: fib_rules: Add port mask support
Date: Wed, 19 Feb 2025 08:22:54 -0700 [thread overview]
Message-ID: <c125747a-8300-4282-894c-73c19ad7ce2f@kernel.org> (raw)
In-Reply-To: <20250217134109.311176-1-idosch@nvidia.com>
On 2/17/25 6:41 AM, Ido Schimmel wrote:
> 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(-)
>
For the set:
Reviewed-by: David Ahern <dsahern@kernel•org>
next prev parent reply other threads:[~2025-02-19 15:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 13:41 [PATCH net-next 0/8] net: fib_rules: Add port mask support Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 1/8] net: fib_rules: Add port mask attributes Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 2/8] net: fib_rules: Add port mask support Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 3/8] ipv4: fib_rules: Add port mask matching Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 4/8] ipv6: " Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 5/8] net: fib_rules: Enable port mask usage Ido Schimmel
2025-02-18 17:15 ` Kory Maincent
2025-02-18 18:15 ` Ido Schimmel
2025-02-18 19:22 ` Kory Maincent
2025-02-17 13:41 ` [PATCH net-next 6/8] netlink: specs: Add FIB rule port mask attributes Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 7/8] selftests: fib_rule_tests: Add port range match tests Ido Schimmel
2025-02-17 13:41 ` [PATCH net-next 8/8] selftests: fib_rule_tests: Add port mask " Ido Schimmel
2025-02-18 12:16 ` [PATCH net-next 0/8] net: fib_rules: Add port mask support Guillaume Nault
2025-02-19 15:22 ` David Ahern [this message]
2025-02-20 2:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c125747a-8300-4282-894c-73c19ad7ce2f@kernel.org \
--to=dsahern@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=donald.hunter@gmail$(echo .)com \
--cc=edumazet@google$(echo .)com \
--cc=gnault@redhat$(echo .)com \
--cc=horms@kernel$(echo .)org \
--cc=idosch@nvidia$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=petrm@nvidia$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox