mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-22 17:52:09 +00:00
net: vxlan: make vxlan_set_mac() return drop reasons
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>
This commit is contained in:
committed by
David S. Miller
parent
289fd4e752
commit
d209706f56
@@ -97,6 +97,7 @@
|
||||
FN(MAC_INVALID_SOURCE) \
|
||||
FN(VXLAN_ENTRY_EXISTS) \
|
||||
FN(IP_TUNNEL_ECN) \
|
||||
FN(LOCAL_MAC) \
|
||||
FNe(MAX)
|
||||
|
||||
/**
|
||||
@@ -443,6 +444,11 @@ enum skb_drop_reason {
|
||||
* RFC 6040 4.2, see __INET_ECN_decapsulate() for detail.
|
||||
*/
|
||||
SKB_DROP_REASON_IP_TUNNEL_ECN,
|
||||
/**
|
||||
* @SKB_DROP_REASON_LOCAL_MAC: the source MAC address is equal to
|
||||
* the MAC address of the local netdev.
|
||||
*/
|
||||
SKB_DROP_REASON_LOCAL_MAC,
|
||||
/**
|
||||
* @SKB_DROP_REASON_MAX: the maximum of core drop reasons, which
|
||||
* shouldn't be used as a real 'reason' - only for tracing code gen
|
||||
|
||||
Reference in New Issue
Block a user