numam-dpdk/drivers/net/mlx4
Suanming Mou ed879add1b net/mlx4: fix port attach in secondary process
Currently, the secondary process port UAR register mapping used by Tx
queue is done during port initializing.

Unluckily, in port hot-plug case, the secondary process will be
requested to initialize the port when primary process probe the port.
At that time, the port Tx queue number is still not configured, the
secondary process get Tx queue number as 0. This causes the UAR register
not be mapped as secondary process get Tx queue number 0.

This commit adds the check of Tx queue number in secondary process when
port starts is requested. Once the Tx queue number is not matching, do
UAR mapping with the latest Tx queue number.

Fixes: 0203d33a10 ("net/mlx4: support secondary process")
Cc: stable@dpdk.org

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-01-29 18:16:08 +01:00
..
meson.build build: force pkg-config for dependency detection 2021-01-26 00:43:59 +01:00
mlx4_ethdev.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_flow.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_flow.h ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_glue.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_glue.h net/mlx: remove separate ABI version for glue libraries 2020-11-03 23:35:07 +01:00
mlx4_intr.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_mp.c net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
mlx4_mr.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx4_prm.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_rxq.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mlx4_rxtx.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_rxtx.h net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
mlx4_txq.c net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
mlx4_utils.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_utils.h net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4.c net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
mlx4.h net/mlx4: fix port attach in secondary process 2021-01-29 18:16:08 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00