numam-dpdk/drivers
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
..
baseband mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
bus bus/pci: query PCI extended capabilities 2020-09-30 19:19:11 +02:00
common common/sfc_efx/base: handle descriptor proxy queue events 2020-09-30 19:19:13 +02:00
compress mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
crypto eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
event eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mempool mempool/octeontx: fix aura to pool mapping 2020-09-30 19:19:11 +02:00
net drivers/net: check process type in close operation 2020-09-30 19:19:14 +02:00
raw bus/pci: query PCI extended capabilities 2020-09-30 19:19:11 +02:00
regex eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
vdpa vdpa/mlx5: fix completion queue polling 2020-09-18 18:55:12 +02:00
meson.build common/mlx5: introduce layer for multiple class drivers 2020-07-28 19:01:11 +02:00