]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Use dscp_t in struct fib_entry_notifier_info
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Apr 2022 20:08:40 +0000 (22:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 00:37:50 +0000 (17:37 -0700)
commit5bdb101615978aebd7d019033ead4f54e8737191
treea4ccc9bd8c4a1c4c5c9d4b0c2cfbc3675837f452
parente9dc9bf05e091a865ca839dae9c4fb1e158406c9
ipv4: Use dscp_t in struct fib_entry_notifier_info

Use the new dscp_t type to replace the tos field of struct
fib_entry_notifier_info. This ensures ECN bits are ignored and makes it
compatible with the dscp field of struct 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>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/prestera/prestera_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/netdevsim/fib.c
include/net/ip_fib.h
net/ipv4/fib_trie.c