numam-dpdk/drivers/net/thunderx
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
..
base replace unused attributes 2020-04-16 18:30:58 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
nicvf_ethdev.c drivers/net: check process type in close operation 2020-09-30 19:19:14 +02:00
nicvf_ethdev.h drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
nicvf_logs.h net/thunderx: implement dynamic logging 2018-01-16 18:47:49 +01:00
nicvf_rxtx.c replace hot attributes 2020-04-16 18:30:58 +02:00
nicvf_rxtx.h replace hot attributes 2020-04-16 18:30:58 +02:00
nicvf_struct.h drivers/net: use structure marker from EAL 2020-01-20 21:17:35 +01:00
nicvf_svf.c drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
nicvf_svf.h drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
rte_pmd_thunderx_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00