]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'unified-tunnel-dst-caching'
authorDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 01:21:49 +0000 (20:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 01:21:49 +0000 (20:21 -0500)
commita0b4f5602cc5a655b63e23db236555f0f552b829
tree576d9b9b839017a90b336b2908b95dd6f2668e4e
parent682ba77ddd795f985d6754fc9736e6ad603a2b6e
parent1d793a6d29ec5fb31bb4a3fee1403d1469a3b0c2
Merge branch 'unified-tunnel-dst-caching'

Paolo Abeni says:

====================
net: unify dst caching for tunnel devices

This patch series try to unify the dst cache implementations currently
present in the kernel, namely in ip_tunnel.c and ip6_tunnel.c, introducing a
new generic implementation, replacing the existing ones, and then using
the new implementation in other tunnel devices which currently lack it.

The new dst implementation is compiled, as built-in, only if any device using
it is enabled.

Caching the dst for the tunnel remote address gives small, but measurable,
performance improvement when tunneling over ipv4 (in the 2%-4% range) and
significant ones when tunneling over ipv6 (roughly 60% when no
fragmentation/segmentation take place and the tunnel local address
is not specified).

v2:
- move the vxlan dst_cache usage inside the device lookup functions
- fix usage after free for lwt tunnel moving the dst cache storage inside
  the dst_metadata,
- sparse codying style cleanup
====================

Signed-off-by: David S. Miller <davem@davemloft.net>