]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fib_rules: Add DSCP mask attribute
authorIdo Schimmel <idosch@nvidia.com>
Thu, 20 Feb 2025 08:05:20 +0000 (10:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Feb 2025 00:08:47 +0000 (16:08 -0800)
commitca4edd969a9483b1a1837056641019f62287063f
tree280f7ff8b0a0da5048ffcabbd3b987d17e7716ba
parente87700965abeddcdb84c9540107c69ce08b87431
net: fib_rules: Add DSCP mask attribute

Add an attribute that allows matching on DSCP with a mask. Matching on
DSCP with a mask is needed in deployments where users encode path
information into certain bits of the DSCP field.

Temporarily set the type of the attribute 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>
Link: https://patch.msgid.link/20250220080525.831924-2-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/fib_rules.h
net/core/fib_rules.c