]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/i40e/i40e_vf_representor.c
ethdev: support representor id as iterator filter
[dpdk.git] / drivers / net / i40e / i40e_vf_representor.c
index 43fe00ccae75db5efbcc8c50b7e34789b2e71842..a523e50da6d811fef98db46709f19f45709a2561 100644 (file)
@@ -504,6 +504,7 @@ i40e_vf_representor_init(struct rte_eth_dev *ethdev, void *init_params)
        }
 
        ethdev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR;
+       ethdev->data->representor_id = representor->vf_id;
 
        /* Setting the number queues allocated to the VF */
        ethdev->data->nb_rx_queues = vf->vsi->nb_qps;