]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ndo_set_rx_headroom'
authorDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 20:54:31 +0000 (15:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 20:54:31 +0000 (15:54 -0500)
commit49c5c5c244b90e1e9471375ea95a12ad0bf79fc7
tree2530b68faffa4a6cb301fb71c64cab0ee69f3747
parentfa3c94fb68d21a2f8cf78b2191d78987f70e2e47
parentebdaad5981254e6da677ca7f308d9bde0848ea2d
Merge branch 'ndo_set_rx_headroom'

Paolo Abeni says:

====================
bridge/ovs: avoid skb head copy on frame forwarding

Currently, while when an OVS or Linux bridge is used to forward frames towards
some tunnel device, a skb_head_copy() may occur if the ingress device do not
provide enough headroom for the tx encapsulation.

This patch series tries to address the issue implementing a new ndo operation to
allow the master device to control the headroom used when allocating the skb on
frame reception.

Said operation is used by the Linux bridge to notify the bridged ports of
needed_headroom changes, and similar bookkeeping and behaviour is also added to
openvswitch, on a per datapath basis.

Finally, the operation is implemented for veth and tun device, which give
performance improvement in the 6-12% range when forwarding frames from said
devices towards a vxlan tunnel.

v2:
- fix netdev_get_fwd_headroom() behaviour
- remove some code duplication with the netdev_set_rx_headroom() and
   netdev_reset_rx_headroom() helpers
- handle headroom reset on [v]port removal/deletion
- initialize tun align to the old default value

v3:
- fix a comment typo
====================

Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>