summaryrefslogtreecommitdiff
path: root/drivers/net/ena/ena_ethdev.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-05-09 04:04:50 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 22:31:51 +0100
commitdf428ceef4fdbceacda8d50341c25ddd46a76a39 (patch)
tree22f0275c40b0130593b4b1c6f20ebb633af0e577 /drivers/net/ena/ena_ethdev.c
parentce07b1514d5961baf59ead7d030b522eb06ea527 (diff)
downloaddpdk-df428ceef4fdbceacda8d50341c25ddd46a76a39.zip
dpdk-df428ceef4fdbceacda8d50341c25ddd46a76a39.tar.gz
dpdk-df428ceef4fdbceacda8d50341c25ddd46a76a39.tar.xz
net/mlx5: change device reference for secondary process
rte_eth_devices[] is not shared between primary and secondary process, but a static array to each process. The reverse pointer of device (priv->dev) is invalid. Instead, priv has the pointer to shared data of the device, struct rte_eth_dev_data *dev_data; Two macros are added, #define PORT_ID(priv) ((priv)->dev_data->port_id) #define ETH_DEV(priv) (&rte_eth_devices[PORT_ID(priv)]) Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/ena/ena_ethdev.c')
0 files changed, 0 insertions, 0 deletions