diff options
author | Paolo Abeni <pabeni@redhat.com> | 2016-02-26 12:45:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-01 23:54:30 +0300 |
commit | eaea34b23c46bf17b4a5638be69ab3561854f34b (patch) | |
tree | 1a2182f40f905d60de941bda9513864eb22fe9ab /mm/oom_kill.c | |
parent | 3a927bc7cf9d0fbe8f4a8189dd5f8440228f64e7 (diff) | |
download | linux-eaea34b23c46bf17b4a5638be69ab3561854f34b.tar.xz |
net/tun: implement ndo_set_rx_headroom
ndo_set_rx_headroom controls the align value used by tun devices to
allocate skbs on frame reception.
When the xmit device adds a large encapsulation, this avoids an skb
head reallocation on forwarding.
The measured improvement when forwarding towards a vxlan dev with
frame size below the egress device MTU is as follow:
vxlan over ipv6, bridged: +6%
vxlan over ipv6, ovs: +7%
In case of ipv4 tunnels there is no improvement, since the tun
device default alignment provides enough headroom to avoid the skb
head reallocation.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions