From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 1/2] ethdev: introduce generic IP/UDP tunnel checksum and TSO Date: Wed, 18 Apr 2018 20:02:35 +0200 Message-ID: <25401990.h546MBpoIl@xps> References: <20180408123240.110698-1-xuemingl@mellanox.com> <2683955.QbV0EBoMcY@xps> <2601191342CEEE43887BDE71AB977258AE9179C8@IRSMSX102.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Xueming Li , "Lu, Wenzhuo" , "Wu, Jingjing" , Yongseok Koh , Olivier MATZ , Shahaf Shuler , "Iremonger, Bernard" , "Yigit, Ferruh" , "dev@dpdk.org" To: "Ananyev, Konstantin" Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id F1AC137A0 for ; Wed, 18 Apr 2018 20:02:39 +0200 (CEST) In-Reply-To: <2601191342CEEE43887BDE71AB977258AE9179C8@IRSMSX102.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 18/04/2018 18:45, Ananyev, Konstantin: > From: Thomas Monjalon > > 18/04/2018 15:58, Xueming Li: > > > The new flag PKT_TX_TUNNEL_IP is redundant with PKT_TX_OUTER_IP_CKSUM. > > > The old flag PKT_TX_OUTER_IP_CKSUM can be deprecated and removed in > > > later release. > > > > > > Signed-off-by: Xueming Li > > > > Except a small comment below, it looks OK. > > > > Acked-by: Thomas Monjalon > > > > Please send a deprecation notice for PKT_TX_OUTER_IP_CKSUM. > > I probably missed something, but why PKT_TX_OUTER_IP_CKSUM > is supposed to be deprecated? Because PKT_TX_TUNNEL_* flags sepersede it. I think we need to discuss it. We use the offload flags PKT_TX_TUNNEL_* when we request some offloads in the outer and the inner headers at the same time. When setting a tunnel flag PKT_TX_TUNNEL_*, it can be expected that the outer checksums will be offloaded, otherwise it is almost impossible to request an offload in the inner header. In the case of an UDP tunnel, any change in the inner packet will require an UDP checksum update. In the case of an IP tunnel, a change of the inner packet size (like TSO) will require an IP checksum update. If we really require PKT_TX_OUTER_IP_CKSUM to be set in addition to PKT_TX_TUNNEL_* flags, then we should add more PKT_TX_OUTER_*_CKSUM, like PKT_TX_OUTER_UDP_CKSUM which is missing. Opinions?