Patchwork [5/6] vxlan: add additional headroom

login
register
mail settings
Submitter stephen hemminger
Date Oct. 9, 2012, 5:56 p.m.
Message ID <20121009175714.765137515@vyatta.com>
Download mbox | patch
Permalink /patch/190393/
State Superseded
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Oct. 9, 2012, 5:56 p.m.
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>



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- a/drivers/net/vxlan.c	2012-10-09 10:49:08.238763697 -0700
+++ b/drivers/net/vxlan.c	2012-10-09 10:49:19.830648777 -0700
@@ -977,6 +977,7 @@  static void vxlan_setup(struct net_devic
 
 	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;