numam-dpdk/drivers/net/cxgbe
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 net/cxgbe: improve Rx congestion control 2020-09-18 18:55:12 +02:00
clip_tbl.c net/cxgbe: use relative paths for includes 2018-12-21 16:22:41 +01:00
clip_tbl.h net/cxgbe: add Compressed Local IP region 2018-07-04 22:20:41 +02:00
cxgbe_compat.h net/cxgbe: remove local bool type 2020-01-17 19:46:02 +01:00
cxgbe_ethdev.c drivers/net: check process type in close operation 2020-09-30 19:19:14 +02:00
cxgbe_filter.c net/cxgbe: rework queue allocation between ports 2020-09-18 18:55:12 +02:00
cxgbe_filter.h net/cxgbe: fix double MPS alloc by flow validate and create 2020-06-17 15:31:32 +02:00
cxgbe_flow.c net/cxgbe: ignore flow default masks for unrequested fields 2020-06-17 15:31:32 +02:00
cxgbe_flow.h net/cxgbe: increase completion wait time for flow operations 2018-11-14 00:35:53 +01:00
cxgbe_main.c ethdev: remove old close behaviour 2020-09-30 19:19:14 +02:00
cxgbe_ofld.h net/cxgbe: support to delete flows in HASH region 2018-07-04 22:20:41 +02:00
cxgbe_pfvf.h ethdev: allow drivers to return error on close 2020-09-30 19:19:13 +02:00
cxgbe.h net/cxgbe: rework queue allocation between ports 2020-09-18 18:55:12 +02:00
cxgbevf_ethdev.c net/cxgbe: rework queue allocation between ports 2020-09-18 18:55:12 +02:00
cxgbevf_main.c ethdev: remove old close behaviour 2020-09-30 19:19:14 +02:00
l2t.c net/cxgbe: add prefix to global functions 2019-10-07 15:00:57 +02:00
l2t.h net/cxgbe: add prefix to global functions 2019-10-07 15:00:57 +02:00
meson.build net/cxgbe: support Source MAC Table 2020-03-18 15:29:39 +01:00
mps_tcam.c net/cxgbe: fix duplicate MAC addresses in MPS TCAM 2020-09-18 18:55:10 +02:00
mps_tcam.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
rte_pmd_cxgbe_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00
sge.c net/cxgbe: improve Rx congestion control 2020-09-18 18:55:12 +02:00
smt.c net/cxgbe: fix SMT leak in filter error and free path 2020-06-17 15:31:32 +02:00
smt.h net/cxgbe: fix SMT leak in filter error and free path 2020-06-17 15:31:32 +02:00