From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 30792475D for ; Wed, 7 Dec 2016 16:34:16 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP; 07 Dec 2016 07:34:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,310,1477983600"; d="scan'208";a="1069170371" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 07 Dec 2016 07:34:14 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 7 Dec 2016 07:34:14 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 7 Dec 2016 07:34:14 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.239]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0248.002; Wed, 7 Dec 2016 23:34:10 +0800 From: "Chen, Jing D" To: "Yigit, Ferruh" , "Lu, Wenzhuo" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 28/32] net/i40e: return correct vsi_id Thread-Index: AQHSUDqZjYcXMB7aDUmYFWADXFO1RKD8EyeAgACK2bA= Date: Wed, 7 Dec 2016 15:34:10 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D3A3C348B@shsmsx102.ccr.corp.intel.com> References: <1480637533-37425-1-git-send-email-wenzhuo.lu@intel.com> <1481081535-37448-1-git-send-email-wenzhuo.lu@intel.com> <1481081535-37448-29-git-send-email-wenzhuo.lu@intel.com> <63a680b6-6a5e-cfe9-6050-ac348334ba67@intel.com> In-Reply-To: <63a680b6-6a5e-cfe9-6050-ac348334ba67@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2EzZmYzOTctMmFjNy00MThiLWFkYmUtM2NmYWNhYWM5YzRmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImRnRXUrMUpCdThOSWNaVnJFOXVWS2ExK2M0UDdwNEhQOTVzcWF6NUc0UWs9In0= x-ctpclassification: CTP_IC 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 v2 28/32] net/i40e: return correct vsi_id 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: Wed, 07 Dec 2016 15:34:16 -0000 Ferruh, > -----Original Message----- > From: Yigit, Ferruh > Sent: Wednesday, December 7, 2016 11:16 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Chen, Jing D > Subject: Re: [dpdk-dev] [PATCH v2 28/32] net/i40e: return correct vsi_id >=20 > On 12/7/2016 3:32 AM, Wenzhuo Lu wrote: > > PF host didn't return correct VSI id to VF. > > This change fix it. >=20 > This looks like a fix for current code, > can you please update commit title and log to reflect the fix? >=20 This is similar patch to support Linux VF client. DPDK VF client needn't Vsi ID. > > > > Signed-off-by: Chen Jing D(Mark) > > --- > > drivers/net/i40e/i40e_pf.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c > > index 0f582ed..8319c2c 100644 > > --- a/drivers/net/i40e/i40e_pf.c > > +++ b/drivers/net/i40e/i40e_pf.c > > @@ -351,8 +351,7 @@ > > > > /* Change below setting if PF host can support more VSIs for VF */ > > vf_res->vsi_res[0].vsi_type =3D I40E_VSI_SRIOV; > > - /* As assume Vf only has single VSI now, always return 0 */ > > - vf_res->vsi_res[0].vsi_id =3D 0; > > + vf_res->vsi_res[0].vsi_id =3D vf->vsi->vsi_id; > > vf_res->vsi_res[0].num_queue_pairs =3D vf->vsi->nb_qps; > > ether_addr_copy(&vf->mac_addr, > > (struct ether_addr *)vf_res->vsi_res[0].default_mac_addr); > >