]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Add support for network devices capable of removing the ESP trailer
authorYossi Kuperman <yossiku@mellanox.com>
Wed, 30 Aug 2017 08:30:39 +0000 (11:30 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 31 Aug 2017 07:04:03 +0000 (09:04 +0200)
commitfd1518285aaf799b545cdf3d18af48e15ff4519a
tree1718a09f7321053903a758a82b0101595113cad0
parent804cfacb68612beba353a59ccf20b268ba4d9452
xfrm: Add support for network devices capable of removing the ESP trailer

In conjunction with crypto offload [1], removing the ESP trailer by
hardware can potentially improve the performance by avoiding (1) a
cache miss incurred by reading the nexthdr field and (2) the necessity
to calculate the csum value of the trailer in order to keep skb->csum
valid.

This patch introduces the changes to the xfrm stack and merely serves
as an infrastructure. Subsequent patch to mlx5 driver will put this to
a good use.

[1] https://www.mail-archive.com/netdev@vger.kernel.org/msg175733.html

Signed-off-by: Yossi Kuperman <yossiku@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/ipv4/esp4.c
net/ipv6/esp6.c
net/xfrm/xfrm_input.c