From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 80E2E1B2CF for ; Thu, 18 Jan 2018 14:57:12 +0100 (CET) Received: from lfbn-lil-1-110-231.w90-45.abo.wanadoo.fr ([90.45.197.231] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ecAgs-0007lX-QV; Thu, 18 Jan 2018 14:57:16 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Thu, 18 Jan 2018 14:57:08 +0100 Date: Thu, 18 Jan 2018 14:57:08 +0100 From: Olivier Matz To: Ferruh Yigit Cc: yskoh@mellanox.com, nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com, Shahaf Shuler , stephen@networkplumber.org, dev@dpdk.org, Shachar Beiser Message-ID: <20180118135708.dopriv2zxydfjvix@platinum> References: <07cfe9a606927b551c3530a2b910ef88547d9118.1514705637.git.shacharbe@mellanox.com> <32496fef-0f1e-759e-71bb-c338a81aed34@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32496fef-0f1e-759e-71bb-c338a81aed34@intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v2 1/2] lib/net: add IPv6 header fields macros X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 13:57:12 -0000 On Wed, Jan 17, 2018 at 04:53:25PM +0000, Ferruh Yigit wrote: > On 1/16/2018 9:17 AM, Shahaf Shuler wrote: > > From: Shachar Beiser > > > > Support IPv6 header vtc_flow fields : tc , flow_label > > > > Signed-off-by: Shachar Beiser > > --- > > Sending on behalf of Shachar. > > > > On v2: > > - Addressed Stephen comments on the coding style. > > Hi Olivier, > > Any objection to the patch? Sorry, I missed it. Acked-by: Olivier Matz > > Thanks, > ferruh > > > > > --- > > lib/librte_net/rte_ip.h | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h > > index 9a62ff667..f32684c66 100644 > > --- a/lib/librte_net/rte_ip.h > > +++ b/lib/librte_net/rte_ip.h > > @@ -344,6 +344,12 @@ struct ipv6_hdr { > > uint8_t dst_addr[16]; /**< IP address of destination host(s). */ > > } __attribute__((__packed__)); > > > > +/* IPv6 vtc_flow: IPv / TC / flow_label */ > > +#define IPV6_HDR_FL_SHIFT 0 > > +#define IPV6_HDR_TC_SHIFT 20 > > +#define IPV6_HDR_FL_MASK ((1u << IPV6_HDR_TC_SHIFT) - 1) > > +#define IPV6_HDR_TC_MASK (0xf << IPV6_HDR_TC_SHIFT) > > + > > /** > > * Process the pseudo-header checksum of an IPv6 header. > > * > > >