summaryrefslogtreecommitdiff
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-10-22 15:15:29 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-26 22:14:06 +0200
commita7d3c6271d558e881e3ba1304e9f8683aca944e4 (patch)
tree24d289724f50dcd9e481b9356d385a8efa34add4 /drivers/net/ixgbe
parent7f07e7d794d62830faee7cc90486acbe4a0740b4 (diff)
downloaddpdk-next-eventdev-a7d3c6271d558e881e3ba1304e9f8683aca944e4.zip
dpdk-next-eventdev-a7d3c6271d558e881e3ba1304e9f8683aca944e4.tar.gz
dpdk-next-eventdev-a7d3c6271d558e881e3ba1304e9f8683aca944e4.tar.xz
ethdev: support representor id as iterator filter
The representor id is added in rte_eth_dev_data in order to be able to match a port with its representor id in devargs. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_vf_representor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_vf_representor.c b/drivers/net/ixgbe/ixgbe_vf_representor.c
index eb9bbe5..917ee68 100644
--- a/drivers/net/ixgbe/ixgbe_vf_representor.c
+++ b/drivers/net/ixgbe/ixgbe_vf_representor.c
@@ -192,6 +192,7 @@ ixgbe_vf_representor_init(struct rte_eth_dev *ethdev, void *init_params)
return -ENODEV;
ethdev->data->dev_flags |= RTE_ETH_DEV_REPRESENTOR;
+ ethdev->data->representor_id = representor->vf_id;
/* Set representor device ops */
ethdev->dev_ops = &ixgbe_vf_representor_dev_ops;