[PATCHv2,6/8] vxlan: add additional headroom

Message ID 20121010063623.783001791@vyatta.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

stephen hemminger Oct. 10, 2012, 6:35 a.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


--- a/drivers/net/vxlan.c	2012-10-09 18:08:35.086431755 -0700
+++ b/drivers/net/vxlan.c	2012-10-09 18:08:36.862414133 -0700
@@ -983,6 +983,7 @@  static void vxlan_setup(struct net_devic
+	dev->hard_header_len = ETH_HLEN + VXLAN_HEADROOM;
 	dev->netdev_ops = &vxlan_netdev_ops;
 	dev->destructor = vxlan_free;