Re: [PATCH net-next] xfrm: Add support for network devices capable of removing the ESP trailer

From: Steffen Klassert
Date: Thu Aug 31 2017 - 07:56:40 EST


On Wed, Aug 30, 2017 at 11:30:39AM +0300, yossiku@xxxxxxxxxxxx wrote:
> From: Yossi Kuperman <yossiku@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxx/msg175733.html
>
> Signed-off-by: Yossi Kuperman <yossiku@xxxxxxxxxxxx>

Applied to ipsec-next, thanks Yossi!