vxlan: Fix error that was resulting in VXLAN MTU size being 10 bytes too large
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 9 Nov 2012 13:35:24 +0000 (13:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2012 19:36:50 +0000 (14:36 -0500)
commit52b702ffa509595c5d04a1a1d0f63acf92b4789b
tree80303edb068697a49d4936575e3b2c49e8d1976e
parentbd090dfc634ddd711a5fbd0cadc6e0ab4977bcaf
vxlan: Fix error that was resulting in VXLAN MTU size being 10 bytes too large

This change fixes an issue I found where VXLAN frames were fragmented when
they were up to the VXLAN MTU size.  I root caused the issue to the fact that
the headroom was 4 + 20 + 8 + 8.  This math doesn't appear to be correct
because we are not inserting a VLAN header, but instead a 2nd Ethernet header.
As such the math for the overhead should be 20 + 8 + 8 + 14 to account for the
extra headers that are inserted for VXLAN.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c