From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4 1/4] ethdev: introduce generic IP/UDP tunnel checksum and TSO Date: Tue, 17 Apr 2018 00:42:31 +0200 Message-ID: <1859185.d5eMTAXH7r@xps> References: <20180408123240.110698-1-xuemingl@mellanox.com> <20180408123240.110698-2-xuemingl@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Wenzhuo Lu , Jingjing Wu , Yongseok Koh , Olivier MATZ , Shahaf Shuler , Ferruh Yigit To: Xueming Li Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 3B386D040 for ; Tue, 17 Apr 2018 00:42:34 +0200 (CEST) In-Reply-To: <20180408123240.110698-2-xuemingl@mellanox.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" 08/04/2018 14:32, Xueming Li: > --- a/lib/librte_mbuf/rte_mbuf.h > +++ b/lib/librte_mbuf/rte_mbuf.h > @@ -210,6 +210,8 @@ extern "C" { > #define PKT_TX_TUNNEL_GENEVE (0x4ULL << 45) > /**< TX packet with MPLS-in-UDP RFC 7510 header. */ > #define PKT_TX_TUNNEL_MPLSINUDP (0x5ULL << 45) > +#define PKT_TX_TUNNEL_IP (0xDULL << 45) /**< Tx IP tunneled packet. */ > +#define PKT_TX_TUNNEL_UDP (0xEULL << 45) /**< Tx UDP tunneled packet. */ I think you need to explain in details, in the comments, what we can expect when using these flags. Please write the doxygen comment on the lines before the flag. Any reason for using 0xD and 0xE values? Because they are more generic than the first ones? > /* add new TX TUNNEL type here */ > #define PKT_TX_TUNNEL_MASK (0xFULL << 45)