netdevsim: Use dscp_t in struct nsim_fib4_rt
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Apr 2022 20:08:43 +0000 (22:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 00:37:58 +0000 (17:37 -0700)
commit20bbf32efe1e3b937e7d3a53604dd643b686af3c
treed81d4e8678392060c900ac38d426d8a1385d5370
parent568a3f33b4273833f1b1e4a39d4a3410c4770c32
netdevsim: Use dscp_t in struct nsim_fib4_rt

Use the new dscp_t type to replace the tos field of struct
nsim_fib4_rt. This ensures ECN bits are ignored and makes it compatible
with the dscp fields of struct fib_entry_notifier_info and 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/netdevsim/fib.c