]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vrf: Prepare vrf_process_v4_outbound() to future .flowi4_tos conversion.
authorGuillaume Nault <gnault@redhat.com>
Wed, 30 Oct 2024 13:27:19 +0000 (14:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 Nov 2024 22:29:05 +0000 (14:29 -0800)
commit937677f481259b5291001ef7c68242d366e23b64
treec5bc056ec17c7ed25302414768959978034f3734
parent0c30d6eedd1ec0c1382bcab9576d26413cd278a3
vrf: Prepare vrf_process_v4_outbound() to future .flowi4_tos conversion.

Use ip4h_dscp() to get the DSCP from the IPv4 header, then convert the
dscp_t value to __u8 with inet_dscp_to_dsfield().

Then, when we'll convert .flowi4_tos to dscp_t, we'll just have to drop
the inet_dscp_to_dsfield() call.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/6be084229008dcfa7a4e2758befccfd2217a331e.1730294788.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vrf.c