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 DE0481B2FF; Fri, 22 Dec 2017 02:27:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Dec 2017 17:26:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,438,1508828400"; d="scan'208";a="4748268" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 21 Dec 2017 17:26:59 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 21 Dec 2017 17:26:58 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Fri, 22 Dec 2017 09:26:56 +0800 From: "Zhang, Qi Z" To: "Xing, Beilei" , "Wu, Jingjing" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue Thread-Index: AQHTaaV/gExNy3GpYUSiQPDrOY98TKNOtBhw Date: Fri, 22 Dec 2017 01:26:56 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153123D37@SHSMSX103.ccr.corp.intel.com> References: <1512023768-53485-1-git-send-email-beilei.xing@intel.com> In-Reply-To: <1512023768-53485-1-git-send-email-beilei.xing@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue 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: Fri, 22 Dec 2017 01:27:01 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Beilei Xing > Sent: Thursday, November 30, 2017 2:36 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue >=20 > Failed to create two FDIR rules with different vlan id for the same PCTYP= E. > Root cause is that wrong hash key length is used. >=20 > Fixes: 4149825bbdb9 ("net/i40e: finish integration FDIR with generic flow > API") > Cc: stable@dpdk.org >=20 > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/i40e_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethde= v.c > index 811cc9f..583f100 100644 > --- a/drivers/net/i40e/i40e_ethdev.c > +++ b/drivers/net/i40e/i40e_ethdev.c > @@ -1006,7 +1006,7 @@ i40e_init_fdir_filter_list(struct rte_eth_dev *dev) > struct rte_hash_parameters fdir_hash_params =3D { > .name =3D fdir_hash_name, > .entries =3D I40E_MAX_FDIR_FILTER_NUM, > - .key_len =3D sizeof(struct rte_eth_fdir_input), > + .key_len =3D sizeof(struct i40e_fdir_input), > .hash_func =3D rte_hash_crc, > .hash_func_init_val =3D 0, > .socket_id =3D rte_socket_id(), > -- > 2.5.5 Acked-by: Qi Zhang