From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH 01/22] ethdev: introduce generic flow API Date: Thu, 8 Dec 2016 15:50:20 +0100 Message-ID: <20161208145020.GI10340@6wind.com> References: <1c8a8e4fec73ed33836f1da9525b1b8b53048518.1479309720.git.adrien.mazarguil@6wind.com> <94479800C636CB44BD422CB454846E012EA36991@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , Thomas Monjalon , "De Lara Guarch, Pablo" , Olivier Matz To: "Xing, Beilei" Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 3C0602934 for ; Thu, 8 Dec 2016 15:50:28 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id t79so29106993wmt.0 for ; Thu, 08 Dec 2016 06:50:28 -0800 (PST) Content-Disposition: inline In-Reply-To: <94479800C636CB44BD422CB454846E012EA36991@SHSMSX101.ccr.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" Hi Beilei, On Thu, Dec 08, 2016 at 09:00:05AM +0000, Xing, Beilei wrote: [...] > > +/** > > + * RTE_FLOW_ITEM_TYPE_ETH > > + * > > + * Matches an Ethernet header. > > + */ > > +struct rte_flow_item_eth { > > + struct ether_addr dst; /**< Destination MAC. */ > > + struct ether_addr src; /**< Source MAC. */ > > + unsigned int type; /**< EtherType. */ > Hi Adrien, > > ETHERTYPE in ether header is 2 bytes, so I think "uint16_t type" is more appropriate here, what do you think? You're right, thanks for catching this. I'll update it in v2 (soon). -- Adrien Mazarguil 6WIND