]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: vxlan: make vxlan_snoop() return drop reasons
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 9 Oct 2024 02:28:24 +0000 (10:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:58:10 +0000 (18:58 +0200)
commit5cf22915f2c37b5966c8d1897e4b110e7f319cda
tree3c6699a1a02260bbff190dd902deed831601d1dc
parentb186fb3bb3cd06dfed8e0ee7df22e10b89f6e25f
net: vxlan: make vxlan_snoop() return drop reasons

[ Upstream commit 289fd4e75219a96f77c5d679166035cd5118d139 ]

Change the return type of vxlan_snoop() from bool to enum
skb_drop_reason. In this commit, two drop reasons are introduced:

  SKB_DROP_REASON_MAC_INVALID_SOURCE
  SKB_DROP_REASON_VXLAN_ENTRY_EXISTS

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 6ead38147ebb ("vxlan: Fix NPD when refreshing an FDB entry with a nexthop object")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/vxlan/vxlan_core.c
include/net/dropreason-core.h