]> git.dujemihanovic.xyz Git - linux.git/commit
net: fib_rules: Enable DSCP selector usage
authorIdo Schimmel <idosch@nvidia.com>
Wed, 11 Sep 2024 09:37:46 +0000 (12:37 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Sep 2024 04:15:45 +0000 (21:15 -0700)
commit4b041d286e918340a21d778e83c00649da2b58cb
treee19673684050fada8fdd4eead606574d6c9d92b5
parent2cf630034e4ebcc52e0b69b776cafd90dc4f3919
net: fib_rules: Enable DSCP selector usage

Now that both IPv4 and IPv6 support the new DSCP selector, enable user
space to configure FIB rules that make use of it by changing the policy
of the new DSCP attribute so that it accepts values in the range of [0,
63].

Use NLA_U8 rather than NLA_UINT as the field is of fixed size.

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/20240911093748.3662015-5-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/fib_rules.c