Commit 5cf22915 authored by Menglong Dong's avatar Menglong Dong Committed by Greg Kroah-Hartman
Browse files

net: vxlan: make vxlan_snoop() return drop reasons



[ Upstream commit 289fd4e7 ]

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: default avatarMenglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 6ead3814 ("vxlan: Fix NPD when refreshing an FDB entry with a nexthop object")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b186fb3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment