]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: fib_rules: Add port mask attributes
authorIdo Schimmel <idosch@nvidia.com>
Mon, 17 Feb 2025 13:41:02 +0000 (15:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 02:43:37 +0000 (18:43 -0800)
commit39f970aead3c5afd81d7f4e866a8f3f8fec3dabc
tree4f703c2fafbbbb0d8622121e1697b89d68fbe8eb
parentdfc4b67db06ce272d670cd704c13c741f38d246e
net: fib_rules: Add port mask attributes

Add attributes that allow matching on source and destination ports with
a mask. Matching on the source port with a mask is needed in deployments
where users encode path information into certain bits of the UDP source
port.

Temporarily set the type of the attributes to 'NLA_REJECT' while support
is being added.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250217134109.311176-2-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/fib_rules.h
net/core/fib_rules.c