From: Chen Jing D(Mark) Date: Fri, 13 Jan 2017 03:13:19 +0000 (+0800) Subject: net/i40e: return correct VSI id X-Git-Tag: spdx-start~4767 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6cf07daf985ef3c8958fafc333d3fc7e1246490a;p=dpdk.git 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) Acked-by: Helin Zhang Acked-by: Vincent Jardin --- diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index 25f2fc9332..d919c26773 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);