Re: [PATCH net-next v2] dccp: Prepare dccp_v4_route_skb() to .flowi4_tos conversion.

Eric Dumazet <[email protected]> Thu, 16 Jan 2025 14:51:05 +0100
Newsgroups org.kernel.vger.dccp,org.kernel.vger.netdev
Message-ID <CANn89iKY6Gww84HphTWRj2C3TPa6hs29+SA4gfwN5+JTsf--GQ@mail.gmail.com>
On Thu, Jan 16, 2025 at 2:10=E2=80=AFPM Guillaume Nault <[email protected]>=
 wrote:
>
> Use inet_sk_dscp() to get the socket DSCP value as dscp_t, instead of
> ip_sock_rt_tos() which returns a __u8. This will ease the conversion
> of fl4->flowi4_tos to dscp_t, which now just becomes a matter of
> dropping the inet_dscp_to_dsfield() call.
>
> Signed-off-by: Guillaume Nault <[email protected]>
> ---

Reviewed-by: Eric Dumazet <[email protected]>