]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv6: fib_rules: Add DSCP mask matching
authorIdo Schimmel <idosch@nvidia.com>
Thu, 20 Feb 2025 08:05:22 +0000 (10:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Feb 2025 00:08:48 +0000 (16:08 -0800)
commitc29165c272b86ca4342cba9dfcf8444a5b98863e
treea6372721909ebe2dae9345637bbac8a62214cd1f
parent2ae00699b357618959f815f8f08bddee72c85a72
ipv6: fib_rules: Add DSCP mask matching

Extend IPv6 FIB rules to match on DSCP using a mask. Unlike IPv4, also
initialize the DSCP mask when a non-zero 'tos' is specified as there is
no difference in matching between 'tos' and 'dscp'. As a side effect,
this makes it possible to match on 'dscp 0', like in IPv4.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20250220080525.831924-4-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/fib6_rules.c