]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit184fc8b5ee601cd83dbbdf3e6cfec5f5b8d3b41a
treeb76b1cc9e17e1c4178c7c578782be34e9c248b75
parentc1a9a291cee0890eb0f435243f3fb84fefb04348
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