From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 934E27F25 for ; Wed, 5 Nov 2014 22:09:06 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 05 Nov 2014 13:18:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,321,1413270000"; d="scan'208";a="603021275" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga001.jf.intel.com with ESMTP; 05 Nov 2014 13:18:28 -0800 Received: from irsmsx106.ger.corp.intel.com (163.33.3.31) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 5 Nov 2014 21:18:18 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.82]) by IRSMSX106.ger.corp.intel.com ([169.254.8.179]) with mapi id 14.03.0195.001; Wed, 5 Nov 2014 21:18:18 +0000 From: "De Lara Guarch, Pablo" To: "Wu, Jingjing" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v5 05/21] i40e: implement operations to add/delete flow director Thread-Index: AQHP9BMMe3B6DRNljE+BgfniwPN9KJxSk2hw Date: Wed, 5 Nov 2014 21:18:17 +0000 Message-ID: References: <1413939687-11177-1-git-send-email-jingjing.wu@intel.com> <1414654006-7472-1-git-send-email-jingjing.wu@intel.com> <1414654006-7472-6-git-send-email-jingjing.wu@intel.com> In-Reply-To: <1414654006-7472-6-git-send-email-jingjing.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5 05/21] i40e: implement operations to add/delete flow director X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2014 21:09:07 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jingjing Wu > Sent: Thursday, October 30, 2014 7:27 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v5 05/21] i40e: implement operations to > add/delete flow director >=20 > Deal with two operations for flow director > - RTE_ETH_FILTER_ADD > - RTE_ETH_FILTER_DELETE > Encode the flow inputs to programming packet. > Sent the packet to filter programming queue and check status > on the status report queue. >=20 > Signed-off-by: Jingjing Wu > --- > lib/librte_pmd_i40e/i40e_ethdev.c | 3 + > lib/librte_pmd_i40e/i40e_ethdev.h | 3 + > lib/librte_pmd_i40e/i40e_fdir.c | 622 > ++++++++++++++++++++++++++++++++++++++ > 3 files changed, 628 insertions(+) >=20 > diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c > b/lib/librte_pmd_i40e/i40e_ethdev.c > index 8195e8a..fb43efb 100644 > --- a/lib/librte_pmd_i40e/i40e_ethdev.c > +++ b/lib/librte_pmd_i40e/i40e_ethdev.c > @@ -4577,6 +4577,7 @@ i40e_dev_filter_ctrl(struct rte_eth_dev *dev, > enum rte_filter_op filter_op, > void *arg) > { > + struct i40e_pf *pf =3D I40E_DEV_PRIVATE_TO_PF(dev->data- > >dev_private); > int ret =3D 0; >=20 > if (dev =3D=3D NULL) > @@ -4585,6 +4586,8 @@ i40e_dev_filter_ctrl(struct rte_eth_dev *dev, > switch (filter_type) { > case RTE_ETH_FILTER_TUNNEL: > ret =3D i40e_tunnel_filter_handle(dev, filter_op, arg); Missing break here? > + case RTE_ETH_FILTER_FDIR: > + ret =3D i40e_fdir_ctrl_func(pf, filter_op, arg); > break; > default: > PMD_DRV_LOG(WARNING, "Filter type (%d) not > supported",