From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v6 10/17] net/i40e: add flow create function Date: Thu, 5 Jan 2017 17:47:03 +0000 Message-ID: <6c6c05a7-e58f-d784-0ec1-1dbaa7ea0158@intel.com> References: <1483500187-124740-1-git-send-email-beilei.xing@intel.com> <1483631170-16681-1-git-send-email-beilei.xing@intel.com> <1483631170-16681-11-git-send-email-beilei.xing@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: Beilei Xing , jingjing.wu@intel.com, helin.zhang@intel.com Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4F0E82B9C for ; Thu, 5 Jan 2017 18:47:15 +0100 (CET) In-Reply-To: <1483631170-16681-11-git-send-email-beilei.xing@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" On 1/5/2017 3:46 PM, Beilei Xing wrote: > This patch adds i40e_flow_create function to create a > rule. It will check if a flow matches ethertype filter > or flow director filter or tunnel filter, if the flow > matches some kind of filter, then set the filter to HW. > > Signed-off-by: Beilei Xing > --- <...> > > /* > + * Struct to store flow created. > + */ > +struct i40e_flow { > + TAILQ_ENTRY(i40e_flow) node; > + enum rte_filter_type filter_type; > + void *rule; > +}; It is possible to define this struct as "struct rte_flow", this prevents repetitive casting between rte_flow and i40e_flow. It is your call. <...>