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 7E313689B for ; Fri, 13 Jan 2017 11:16:41 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 13 Jan 2017 02:16:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,221,1477983600"; d="scan'208";a="29949593" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.128.150]) by orsmga002.jf.intel.com with ESMTP; 13 Jan 2017 02:16:39 -0800 From: "Chen Jing D(Mark)" To: dev@dpdk.org Cc: daniels@research.att.com, helin.zhang@intel.com, ferruh.yigit@intel.com, vincent.jardin@6wind.com, jingjing.wu@intel.com, "Chen Jing D(Mark)" Date: Fri, 13 Jan 2017 11:13:19 +0800 Message-Id: <1484277201-5930-3-git-send-email-jing.d.chen@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1484277201-5930-1-git-send-email-jing.d.chen@intel.com> References: <1483405159-9237-2-git-send-email-jing.d.chen@intel.com> <1484277201-5930-1-git-send-email-jing.d.chen@intel.com> Subject: [dpdk-dev] [PATCH v2 2/4] 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: Fri, 13 Jan 2017 10:16:42 -0000 PF host didn't return correct VSI id to VF. This change fix it. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index fa4af2b..fd83c16 100644 --- a/drivers/net/i40e/i40e_pf.c +++ b/drivers/net/i40e/i40e_pf.c @@ -329,8 +329,7 @@ /* Change below setting if PF host can support more VSIs for VF */ vf_res->vsi_res[0].vsi_type = I40E_VSI_SRIOV; - /* As assume Vf only has single VSI now, always return 0 */ - vf_res->vsi_res[0].vsi_id = 0; + vf_res->vsi_res[0].vsi_id = vf->vsi->vsi_id; vf_res->vsi_res[0].num_queue_pairs = vf->vsi->nb_qps; ether_addr_copy(&vf->mac_addr, (struct ether_addr *)vf_res->vsi_res[0].default_mac_addr); -- 1.7.7.6