numam-dpdk/drivers/net/mlx4
Stephen Hemminger 164cad78b0 net/mlx4: fix crash on info query in secondary process
mlx4_dev_info_get calls mlx4_get_ifname, but mlx4_get_ifname
uses priv->ctx which is not a valid pointer in a secondary
process. The fix is to cache the value in primary.

In the primary process, get and store the interface index of
the device so that secondary process can see it.

Bugzilla ID: 320
Fixes: 61cbdd4194 ("net/mlx4: separate device control functions")
Cc: stable@dpdk.org

Reported-by: Suyang Ju <sju@paloaltonetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Matan Azrad <matan@mellanox.com>
2019-08-06 17:42:12 +02:00
..
Makefile net/mlx4: support secondary process 2019-04-05 17:45:22 +02:00
meson.build net/mlx: allow build only on Linux 2019-07-08 21:26:52 +02:00
mlx4_ethdev.c net/mlx4: fix crash on info query in secondary process 2019-08-06 17:42:12 +02:00
mlx4_flow.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
mlx4_flow.h ethdev: deprecate legacy filter API 2019-04-19 14:51:54 +02: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_mp.c ipc: handle unsupported IPC in sync request 2019-06-05 11:28:05 +02:00
mlx4_mr.c mem: add API to lock/unlock memory hotplug 2019-07-05 22:12:40 +02:00
mlx4_mr.h net/mlx4: enable secondary process to register DMA memory 2019-04-05 17:45:22 +02:00
mlx4_prm.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_rxq.c net/mlx4: add external allocator for Verbs object 2019-04-05 17:45:22 +02:00
mlx4_rxtx.c eal: hide shared memory config 2019-07-06 10:32:34 +02:00
mlx4_rxtx.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_txq.c net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_utils.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_utils.h net/mlx4: use dynamic log type 2019-05-27 10:20:45 +02:00
mlx4.c net/mlx4: fix crash on info query in secondary process 2019-08-06 17:42:12 +02:00
mlx4.h net/mlx4: fix crash on info query in secondary process 2019-08-06 17:42:12 +02:00
rte_pmd_mlx4_version.map