]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv4: fib_rules: Add port mask matching
authorIdo Schimmel <idosch@nvidia.com>
Mon, 17 Feb 2025 13:41:04 +0000 (15:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 02:43:38 +0000 (18:43 -0800)
commit79a4e21584b7d36df51d452f4dc43221b463a26f
tree90f2ca9abf9ed71303c12eb590a302f44669743c
parentda7665947b668ef7882b40888171e941db11f06a
ipv4: fib_rules: Add port mask matching

Extend IPv4 FIB rules to match on source and destination ports using a
mask. Note that the mask is only set when not matching on a range.

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-4-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/fib_rules.h
net/ipv4/fib_rules.c