netfilter: nft_fib: Convert nft_fib4_eval() to dscp_t.
authorGuillaume Nault <gnault@redhat.com>
Thu, 14 Nov 2024 16:03:45 +0000 (17:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 15 Nov 2024 10:00:29 +0000 (11:00 +0100)
commitf12b67cc7d1b67fe9ecee537df5b55625889ca9f
tree3b89d75bd604b735f8ead9842103a19cadb605e2
parentf694ce6de58930146037aa3f69a534e98b007ff3
netfilter: nft_fib: Convert nft_fib4_eval() to dscp_t.

Use ip4h_dscp() instead of reading iph->tos directly.

ip4h_dscp() returns a dscp_t value which is temporarily converted back
to __u8 with inet_dscp_to_dsfield(). When converting ->flowi4_tos to
dscp_t in the future, we'll only have to remove that
inet_dscp_to_dsfield() call.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nft_fib_ipv4.c