numam-dpdk/drivers/net/mlx4
Yongseok Koh 099c2c5376 net/mlx4: 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) 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>
2019-04-05 17:45:22 +02:00
..
Makefile config: add static linkage of mlx dependency 2019-01-14 17:44:29 +01:00
meson.build build: improve dependency handling 2019-02-27 12:13:54 +01:00
mlx4_ethdev.c net/mlx: prefix private structure 2019-03-01 18:17:35 +01:00
mlx4_flow.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_flow.h net/mlx: prefix private structure 2019-03-01 18:17:35 +01:00
mlx4_glue.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_glue.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_intr.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_mr.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_mr.h net/mlx4: add new memory region support 2018-05-14 22:31:52 +01:00
mlx4_prm.h net/mlx4: support hardware TSO 2018-07-10 14:02:57 +02:00
mlx4_rxq.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_rxtx.c net/mlx4: support hardware TSO 2018-07-10 14:02:57 +02:00
mlx4_rxtx.h net/mlx: prefix private structure 2019-03-01 18:17:35 +01:00
mlx4_txq.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4_utils.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_utils.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4.c net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
mlx4.h net/mlx4: change device reference for secondary process 2019-04-05 17:45:22 +02:00
rte_pmd_mlx4_version.map mlx4: move to drivers/net/ 2015-05-22 16:06:22 +02:00