diff options
Diffstat (limited to 'include/net/vxlan.h')
-rw-r--r-- | include/net/vxlan.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/vxlan.h b/include/net/vxlan.h index 2d64d3cd4999..6b6d180fb91a 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h | |||
@@ -36,5 +36,16 @@ int vxlan_xmit_skb(struct vxlan_sock *vs, | |||
36 | 36 | ||
37 | __be16 vxlan_src_port(__u16 port_min, __u16 port_max, struct sk_buff *skb); | 37 | __be16 vxlan_src_port(__u16 port_min, __u16 port_max, struct sk_buff *skb); |
38 | 38 | ||
39 | /* IP header + UDP + VXLAN + Ethernet header */ | ||
40 | #define VXLAN_HEADROOM (20 + 8 + 8 + 14) | ||
41 | /* IPv6 header + UDP + VXLAN + Ethernet header */ | ||
42 | #define VXLAN6_HEADROOM (40 + 8 + 8 + 14) | ||
43 | |||
44 | #if IS_ENABLED(CONFIG_VXLAN) | ||
39 | void vxlan_get_rx_port(struct net_device *netdev); | 45 | void vxlan_get_rx_port(struct net_device *netdev); |
46 | #else | ||
47 | static inline void vxlan_get_rx_port(struct net_device *netdev) | ||
48 | { | ||
49 | } | ||
50 | #endif | ||
40 | #endif | 51 | #endif |