Thread (3 messages) 3 messages, 3 authors, 2024-11-08

Re: [PATCH net-next] ipv4: Prepare ip_route_output() to future .flowi4_tos conversion.

From: Ido Schimmel <idosch@nvidia.com>
Date: 2024-11-07 09:57:19
Also in: bridge, netfilter-devel

On Wed, Nov 06, 2024 at 10:37:32PM +0100, Guillaume Nault wrote:
Convert the "tos" parameter of ip_route_output() to dscp_t. This way
we'll have a dscp_t value directly available when .flowi4_tos will
eventually be converted to dscp_t.

All ip_route_output() callers but one set this "tos" parameter to 0 and
therefore don't need to be adapted to the new prototype.

Only br_nf_pre_routing_finish() needs conversion. It can just use
ip4h_dscp() to get the DSCP field from the IPv4 header.

Signed-off-by: Guillaume Nault <redacted>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help