]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Use dscp_t in struct fib_alias
authorGuillaume Nault <gnault@redhat.com>
Fri, 4 Feb 2022 13:58:19 +0000 (14:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Feb 2022 04:12:46 +0000 (20:12 -0800)
commit92ffd4f21098bc900dda6250fb258b7f1fce15d8
tree02229287b1b9ab91b42bde52ad5ff2f1eb69e6e2
parenta35474a70b63fff00a2e69d820cf18801f057428
ipv4: Use dscp_t in struct fib_alias

Use the new dscp_t type to replace the fa_tos field of fib_alias. This
ensures ECN bits are ignored and makes the field compatible with the
fc_dscp field of struct fib_config.

Converting old *tos variables and fields to dscp_t allows sparse to
flag incorrect uses of DSCP and ECN bits. This patch is entirely about
type annotation and shouldn't change any existing behaviour.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Acked-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_lookup.h
net/ipv4/fib_semantics.c
net/ipv4/fib_trie.c
net/ipv4/route.c