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

[ Upstream commit d209706f562ee4fa81bdf24cf6b679c3222aa06c ]

Change the return type of vxlan_set_mac() from bool to enum
skb_drop_reason. In this commit, the drop reason
"SKB_DROP_REASON_LOCAL_MAC" is introduced for the case that the source
mac of the packet is a local mac.

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: 1f5d2fd1ca04 ("vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/vxlan/vxlan_core.c
include/net/dropreason-core.h