mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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 <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
05f47d69c4
commit
2840bf2286
@ -983,6 +983,7 @@ static void vxlan_setup(struct net_device *dev)
|
|||||||
|
|
||||||
eth_hw_addr_random(dev);
|
eth_hw_addr_random(dev);
|
||||||
ether_setup(dev);
|
ether_setup(dev);
|
||||||
|
dev->hard_header_len = ETH_HLEN + VXLAN_HEADROOM;
|
||||||
|
|
||||||
dev->netdev_ops = &vxlan_netdev_ops;
|
dev->netdev_ops = &vxlan_netdev_ops;
|
||||||
dev->destructor = vxlan_free;
|
dev->destructor = vxlan_free;
|
||||||
|
Loading…
Reference in New Issue
Block a user