From: stephen hemminger Date: Tue, 9 Oct 2012 20:35:51 +0000 (+0000) Subject: vxlan: add additional headroom X-Git-Tag: v3.7-rc1~25^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2840bf22866935fe7197582bcbe2cde4503e0bba;p=platform%2Fkernel%2Flinux-3.10.git vxlan: add additional headroom Tell upper layer protocols to allocate skb with additional headroom. This avoids allocation and copy in local packet sends. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 4be2784..0b95d5f 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -983,6 +983,7 @@ static void vxlan_setup(struct net_device *dev) eth_hw_addr_random(dev); ether_setup(dev); + dev->hard_header_len = ETH_HLEN + VXLAN_HEADROOM; dev->netdev_ops = &vxlan_netdev_ops; dev->destructor = vxlan_free;