]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbfd78b21c36e1f3a326af935f04285d59d189068
treed81d4e8678392060c900ac38d426d8a1385d5370
parent5bdb101615978aebd7d019033ead4f54e8737191
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