]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: initialize needed_headroom
authorPaolo Abeni <pabeni@redhat.com>
Wed, 23 Dec 2015 15:54:27 +0000 (16:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2015 03:28:29 +0000 (22:28 -0500)
commit498e38cd2c7db981d0a2d1d966c186e3ec1b20d3
treeb76b1cc9e17e1c4178c7c578782be34e9c248b75
parent92e61612760d8b7ca2ea65db73546a6dc56ea99e
geneve: initialize needed_headroom

Currently the needed_headroom field for the geneve device is left
to the default value.

This patch set it to space required for basic geneve encapsulation,
so that we can avoid the skb head re-allocation on xmit.

This give a 6% speedup for unsegment traffic on geneve tunnel.

v1 -> v2:
  - add ETH_HLEN for the lower device to the needed headroom

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c