]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: flow_offload: Convert nft_flow_route() to dscp_t.
authorGuillaume Nault <gnault@redhat.com>
Thu, 14 Nov 2024 16:03:31 +0000 (17:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 15 Nov 2024 10:00:29 +0000 (11:00 +0100)
commit6f9615a6e686bc0acfb5a02050a50782a6a378b2
treeafe6c83e8a0db2c29a6a1cae87d349a19ef38585
parent0608746f95b29402421c0e0e96005afba45178ec
netfilter: flow_offload: Convert nft_flow_route() to dscp_t.

Use ip4h_dscp()instead of reading ip_hdr()->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.

Also, remove the comment about the net/ip.h include file, since it's
now required for the ip4h_dscp() helper too.

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