[dpdk-dev] [PATCH v2 28/32] net/i40e: return correct vsi_id

Ferruh Yigit ferruh.yigit at intel.com
Wed Dec 7 16:16:19 CET 2016


On 12/7/2016 3:32 AM, Wenzhuo Lu wrote:
> PF host didn't return correct VSI id to VF.
> This change fix it.

This looks like a fix for current code,
can you please update commit title and log to reflect the fix?

> 
> Signed-off-by: Chen Jing D(Mark) <jing.d.chen at intel.com>
> ---
>  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 = 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);
> 



More information about the dev mailing list