mlxsw: Use dscp_t in struct mlxsw_sp_fib4_entry
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Apr 2022 20:08:46 +0000 (22:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 00:38:01 +0000 (17:38 -0700)
commit046eabbf1991c65d50d1d842f1a3011b53ca9b0a
tree4845e2991eeefaf7e194119630020c46bf1b9de7
parent20bbf32efe1e3b937e7d3a53604dd643b686af3c
mlxsw: Use dscp_t in struct mlxsw_sp_fib4_entry

Use the new dscp_t type to replace the tos field of struct
mlxsw_sp_fib4_entry. This ensures ECN bits are ignored and makes it
compatible with the dscp fields of fib_entry_notifier_info and
fib_rt_info.

This also allows sparse to flag potential incorrect uses of DSCP and
ECN bits.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c