From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH 1/3] mbuf:add two TX offload flags and change three fields Date: Fri, 28 Nov 2014 10:17:28 +0100 Message-ID: <54783DA8.6000508@6wind.com> References: <1417076319-629-1-git-send-email-jijiang.liu@intel.com> <1417076319-629-2-git-send-email-jijiang.liu@intel.com> <5476F626.2020708@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01D9EE79@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: "Liu, Jijiang" , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <1ED644BD7E0A5F4091CF203DAFB8E4CC01D9EE79-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Jijiang, On 11/27/2014 02:14 PM, Liu, Jijiang wrote: >>> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h >>> index 367fc56..48cd8e1 100644 >>> --- a/lib/librte_mbuf/rte_mbuf.h >>> +++ b/lib/librte_mbuf/rte_mbuf.h >>> @@ -99,10 +99,9 @@ extern "C" { >>> #define PKT_RX_TUNNEL_IPV6_HDR (1ULL << 12) /**< RX tunnel packet with >> IPv6 header. */ >>> #define PKT_RX_FDIR_ID (1ULL << 13) /**< FD id reported if FDIR match. >> */ >>> #define PKT_RX_FDIR_FLX (1ULL << 14) /**< Flexible bytes reported if FDIR >> match. */ >>> -/* add new RX flags here */ >>> >> >> We should probably not remove this line. > > Why? > There are two lines "/* add new RX flags here */" in rte_mbuf.h file. No, one is RX, the other is TX. >>> +/** Tell the NIC it's an outer IPv6 packet for tunneling packet.*/ >>> +#define PKT_TX_OUTER_IPV6 (1ULL << 59) >>> >> >> This flag is not in the cover letter or commit log. What is its purpose? >> > With FVL, if outer L3 header is IPv6, to make HW TX checksum offload work , SW must be responsible to tell hardware this information. What hardware checksum are you talking about? I understand that outer L4 checksum is not supported from one of Konstantin's mail. And there is no L3 checksum in IPv6. Regards, Olivier