net: marvell: prestera: Use dscp_t in struct prestera_kern_fib_cache
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Apr 2022 20:08:50 +0000 (22:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 00:38:02 +0000 (17:38 -0700)
commit9f6982e9a3c26a9db226cefd91c21a3e325ca397
tree80fcb3bc257874c018a5bdf09437342e503de7fc
parent046eabbf1991c65d50d1d842f1a3011b53ca9b0a
net: marvell: prestera: Use dscp_t in struct prestera_kern_fib_cache

Use the new dscp_t type to replace the kern_tos field of struct
prestera_kern_fib_cache. 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: Yevhen Orlov <yevhen.orlov@plvision.eu>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/prestera/prestera_router.c