]> git.baikalelectronics.ru Git - kernel.git/commit
skb: make drop reason booleanable
authorJakub Kicinski <kuba@kernel.org>
Tue, 8 Mar 2022 00:44:21 +0000 (16:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2022 11:22:58 +0000 (11:22 +0000)
commita9d8e498f2241b0d13b32596d3e6208c113a4fb7
treeaa98eca413902a3677b68f4eb215e7893b3714bd
parentee93c8ca9e3a3fec445aa8e4e34ed3151d36e153
skb: make drop reason booleanable

We have a number of cases where function returns drop/no drop
decision as a boolean. Now that we want to report the reason
code as well we have to pass extra output arguments.

We can make the reason code evaluate correctly as bool.

I believe we're good to reorder the reasons as they are
reported to user space as strings.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c