Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2840bf22 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

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: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 05f47d69
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;