[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZzcnZ8XvumIbR5mf@calendula>
Date: Fri, 15 Nov 2024 11:50:15 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Guillaume Nault <gnault@...hat.com>
Cc: Jozsef Kadlecsik <kadlec@...filter.org>,
netfilter-devel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>, coreteam@...filter.org,
netdev@...r.kernel.org, Ido Schimmel <idosch@...dia.com>
Subject: Re: [PATCH nf-next 0/5] netfilter: Prepare netfilter to future
.flowi4_tos conversion.
On Thu, Nov 14, 2024 at 05:03:16PM +0100, Guillaume Nault wrote:
> There are multiple occasions where Netfilter code needs to perform
> route lookups and initialise struct flowi4. As we're in the process of
> converting the .flowi4_tos field to dscp_t, we need to convert the
> users so that they have a dscp_t value at hand, rather than a __u8.
>
> All netfilter users get the DSCP (TOS) value from IPv4 packet headers.
> So we just need to use the new ip4h_dscp() helper to get a dscp_t
> variable.
>
> Converting .flowi4_tos to dscp_t will allow to detect regressions where
> ECN bits are mistakenly treated as DSCP when doing route lookups.
Series applied, thanks
Powered by blists - more mailing lists