numam-dpdk/drivers/net/mlx4
Thomas Monjalon 3041049375 drivers/net: check process type in close operation
The secondary processes are not allowed to release shared resources.
Only process-private resources should be freed in a secondary process.
Most of the time, there is no process-private resource,
so the close operation is just forbidden in a secondary process.

After adding proper check in the port close functions,
some redundant checks in the device remove functions are dropped.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
Reviewed-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2020-09-30 19:19:14 +02:00
..
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
mlx4_ethdev.c net/mlx: replace hardcoded value with macro 2020-02-14 12:42:12 +01:00
mlx4_flow.c net/mlx4: fix drop queue error handling 2020-05-11 22:27:39 +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 net/mlx4: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mlx4_intr.c ethdev: remove underscore prefix from internal API 2020-09-18 18:55:08 +02:00
mlx4_mp.c net/mlx4: improve assert control 2020-02-05 09:51:21 +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 net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_rxtx.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_rxtx.h net/mlx4: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mlx4_txq.c net/mlx4: improve assert control 2020-02-05 09:51:21 +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 drivers/net: check process type in close operation 2020-09-30 19:19:14 +02:00
mlx4.h ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
rte_pmd_mlx4_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00