From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B2B109AA2 for ; Tue, 24 Mar 2015 03:37:57 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 23 Mar 2015 19:37:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,455,1422950400"; d="scan'208";a="703136604" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by orsmga002.jf.intel.com with ESMTP; 23 Mar 2015 19:37:55 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 24 Mar 2015 10:37:54 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.149]) by shsmsx102.ccr.corp.intel.com ([169.254.2.198]) with mapi id 14.03.0224.002; Tue, 24 Mar 2015 10:37:53 +0800 From: "Zhang, Helin" To: "Wu, Jingjing" , "dev@dpdk.org" Thread-Topic: [PATCH] i40e: remove ALLOW_LB flag on SRIOV vsi Thread-Index: AQHQYt/x81sZNC+wjEuHwWcii8YEYJ0q8TNQ Date: Tue, 24 Mar 2015 02:37:52 +0000 Message-ID: References: <1426836708-19861-1-git-send-email-jingjing.wu@intel.com> In-Reply-To: <1426836708-19861-1-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: [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] i40e: remove ALLOW_LB flag on SRIOV vsi 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: Tue, 24 Mar 2015 02:37:58 -0000 > -----Original Message----- > From: Wu, Jingjing > Sent: Friday, March 20, 2015 3:32 PM > To: dev@dpdk.org > Cc: Wu, Jingjing; Xu, HuilongX; Zhang, Helin > Subject: [PATCH] i40e: remove ALLOW_LB flag on SRIOV vsi >=20 > Disable VEB switching by removing ALLOW_LB on SRIOV vsi. >=20 > If the source mac address of packet sent from VF is not listed in the VEB= 's mac > table, the VEB will switch the packet back to the VF. > It's a hardware issue. Enabling ALLOW_LB flag will block VF functions. >=20 > Signed-off-by: Jingjing Wu Acked-by: Helin Zhang > --- > lib/librte_pmd_i40e/i40e_ethdev.c | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) >=20 > diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c > b/lib/librte_pmd_i40e/i40e_ethdev.c > index cf6685e..28ea5dc 100644 > --- a/lib/librte_pmd_i40e/i40e_ethdev.c > +++ b/lib/librte_pmd_i40e/i40e_ethdev.c > @@ -3059,11 +3059,15 @@ i40e_vsi_setup(struct i40e_pf *pf, > ctxt.connection_type =3D 0x1; > ctxt.flags =3D I40E_AQ_VSI_TYPE_VF; >=20 > - /* Configure switch ID */ > - ctxt.info.valid_sections |=3D > - rte_cpu_to_le_16(I40E_AQ_VSI_PROP_SWITCH_VALID); > - ctxt.info.switch_id =3D > - rte_cpu_to_le_16(I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB); > + /** > + * Do not configure switch ID to enable VEB switch by > + * I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB. Because in Fortville, > + * if the source mac address of packet sent from VF is not > + * listed in the VEB's mac table, the VEB will switch the > + * packet back to the VF. Need to enable it when HW issue > + * is fixed. > + */ > + > /* Configure port/vlan */ > ctxt.info.valid_sections |=3D > rte_cpu_to_le_16(I40E_AQ_VSI_PROP_VLAN_VALID); > -- > 1.9.3