diff options
author | 2016-02-26 10:45:40 +0100 | |
---|---|---|
committer | 2016-03-01 15:54:30 -0500 | |
commit | eaea34b23c46bf17b4a5638be69ab3561854f34b (patch) | |
tree | 1a2182f40f905d60de941bda9513864eb22fe9ab /drivers/net/veth.c | |
parent | ovs: propagate per dp max headroom to all vports (diff) | |
download | wireguard-linux-eaea34b23c46bf17b4a5638be69ab3561854f34b.tar.xz wireguard-linux-eaea34b23c46bf17b4a5638be69ab3561854f34b.zip |
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 'drivers/net/veth.c')
0 files changed, 0 insertions, 0 deletions