Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbdHaL4g (ORCPT ); Thu, 31 Aug 2017 07:56:36 -0400 Received: from a.mx.secunet.com ([62.96.220.36]:58648 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751127AbdHaL4c (ORCPT ); Thu, 31 Aug 2017 07:56:32 -0400 Date: Thu, 31 Aug 2017 13:56:28 +0200 From: Steffen Klassert To: CC: Herbert Xu , "David S. Miller" , Alexey Kuznetsov , "Hideaki YOSHIFUJI" , , , , Subject: Re: [PATCH net-next] xfrm: Add support for network devices capable of removing the ESP trailer Message-ID: <20170831115628.GN3311@secunet.com> References: <1504081839-22019-1-git-send-email-yossiku@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1504081839-22019-1-git-send-email-yossiku@mellanox.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: d65e63f7-5c15-413f-8f63-c0d707471c93 X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-G-Data-MailSecurity-for-Exchange-Guid: 1CEDA6FC-FA01-4B8B-9EA1-83FD8FD8C90E Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 746 Lines: 18 On Wed, Aug 30, 2017 at 11:30:39AM +0300, yossiku@mellanox.com wrote: > From: Yossi Kuperman > > 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 Applied to ipsec-next, thanks Yossi!