Thread (12 messages) 12 messages, 2 authors, 2012-10-11

[PATCHv2 6/8] vxlan: add additional headroom

flat view

From: Stephen Hemminger <hidden>
Date: 2012-10-10 06:39:23

Tell upper layer protocols to allocate skb with additional headroom.
This avoids allocation and copy in local packet sends.

Signed-off-by: Stephen Hemminger <redacted>

--- 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
 
 	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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help