summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Jing D(Mark) <jing.d.chen@intel.com>2017-01-13 11:13:19 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-17 19:48:02 +0100
commit6cf07daf985ef3c8958fafc333d3fc7e1246490a (patch)
treeeb625ed2d89e241345b49e66bb8268cea2d106fa
parent6d59e4ea74a6dfaa70035b858257c9694f9ed242 (diff)
downloaddpdk-6cf07daf985ef3c8958fafc333d3fc7e1246490a.zip
dpdk-6cf07daf985ef3c8958fafc333d3fc7e1246490a.tar.gz
dpdk-6cf07daf985ef3c8958fafc333d3fc7e1246490a.tar.xz
net/i40e: return correct VSI id
PF host didn't return correct VSI id to VF. This change fix it. Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
-rw-r--r--drivers/net/i40e/i40e_pf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c
index 25f2fc9..d919c26 100644
--- a/drivers/net/i40e/i40e_pf.c
+++ b/drivers/net/i40e/i40e_pf.c
@@ -347,8 +347,7 @@ i40e_pf_host_process_cmd_get_vf_resource(struct i40e_pf_vf *vf, bool b_op)
/* 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);