summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorJoseph Gasparakis2013-10-24 08:27:10 +0200
committerJeff Kirsher2013-10-29 10:39:13 +0100
commite6cd988c27bb5918630db67b3526c9e78e786818 (patch)
treed009eb6f79d4e756234ef4bfc513a507938b3c99 /drivers/net/vxlan.c
parentnet, mc: fix the incorrect comments in two mc-related functions (diff)
downloadkernel-qcow2-linux-e6cd988c27bb5918630db67b3526c9e78e786818.tar.gz
kernel-qcow2-linux-e6cd988c27bb5918630db67b3526c9e78e786818.tar.xz
kernel-qcow2-linux-e6cd988c27bb5918630db67b3526c9e78e786818.zip
vxlan: Have the NIC drivers do less work for offloads
This patch removes the burden from the NIC drivers to check if the vxlan driver is enabled in the kernel and also makes available the vxlan headrooms to them. Signed-off-by: Joseph Gasparakis <joseph.gasparakis@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 75a3a740ce19..24260ced86d2 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -60,10 +60,6 @@
#define VXLAN_N_VID (1u << 24)
#define VXLAN_VID_MASK (VXLAN_N_VID - 1)
-/* IP header + UDP + VXLAN + Ethernet header */
-#define VXLAN_HEADROOM (20 + 8 + 8 + 14)
-/* IPv6 header + UDP + VXLAN + Ethernet header */
-#define VXLAN6_HEADROOM (40 + 8 + 8 + 14)
#define VXLAN_HLEN (sizeof(struct udphdr) + sizeof(struct vxlanhdr))
#define VXLAN_FLAGS 0x08000000 /* struct vxlanhdr.vx_flags required value. */