diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-10-09 16:35:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-10 22:41:22 -0400 |
commit | 2840bf22866935fe7197582bcbe2cde4503e0bba (patch) | |
tree | eeb25f38098f7f2abc09c3dc0601ba77cb46fe0b /drivers/net | |
parent | 05f47d69c44902c265dc2ad5a960978a97b45e3d (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/vxlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 4be2784e7ac2..0b95d5fffce7 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -983,6 +983,7 @@ static void vxlan_setup(struct net_device *dev) | |||
983 | 983 | ||
984 | eth_hw_addr_random(dev); | 984 | eth_hw_addr_random(dev); |
985 | ether_setup(dev); | 985 | ether_setup(dev); |
986 | dev->hard_header_len = ETH_HLEN + VXLAN_HEADROOM; | ||
986 | 987 | ||
987 | dev->netdev_ops = &vxlan_netdev_ops; | 988 | dev->netdev_ops = &vxlan_netdev_ops; |
988 | dev->destructor = vxlan_free; | 989 | dev->destructor = vxlan_free; |