]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: vxlan: make vxlan_remcsum() return drop reasons
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 9 Oct 2024 02:28:23 +0000 (10:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2024 10:33:09 +0000 (11:33 +0100)
commit7b3e018f3eefc6144638800d9f92b3a5e120c537
tree23afa2415c104cdf416892dc71a9ab741387d21c
parent4c06d9daf8e6215447ca8a2ddd59fa09862c9bae
net: vxlan: make vxlan_remcsum() return drop reasons

Make vxlan_remcsum() support skb drop reasons by changing the return
value type of it from bool to enum skb_drop_reason.

The only drop reason in vxlan_remcsum() comes from pskb_may_pull_reason(),
so we just return it.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan/vxlan_core.c