099c2c5376
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) becomes invalid if mlx4 supports secondary process. 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)]) Cc: stable@dpdk.org Suggested-by: Raslan Darawsheh <rasland@mellanox.com> Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com> |
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
mlx4_ethdev.c | ||
mlx4_flow.c | ||
mlx4_flow.h | ||
mlx4_glue.c | ||
mlx4_glue.h | ||
mlx4_intr.c | ||
mlx4_mr.c | ||
mlx4_mr.h | ||
mlx4_prm.h | ||
mlx4_rxq.c | ||
mlx4_rxtx.c | ||
mlx4_rxtx.h | ||
mlx4_txq.c | ||
mlx4_utils.c | ||
mlx4_utils.h | ||
mlx4.c | ||
mlx4.h | ||
rte_pmd_mlx4_version.map |