numam-dpdk/drivers/net/hinic
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/hinic/base: fix clock definition with glibc version 2020-09-30 19:19:09 +02:00
hinic_pmd_ethdev.c drivers/net: check process type in close operation 2020-09-30 19:19:14 +02:00
hinic_pmd_ethdev.h net/hinic: fix setting promiscuous mode 2020-07-07 23:38:26 +02:00
hinic_pmd_flow.c net/hinic: fix TCAM filter set 2020-09-30 19:19:08 +02:00
hinic_pmd_rx.c net/hinic: fix queues resource free 2020-05-18 20:35:57 +02:00
hinic_pmd_rx.h net/hinic: optimize Rx performance for x86 2020-07-30 00:41:23 +02:00
hinic_pmd_tx.c net/hinic: refactor checksum functions 2020-07-30 00:41:23 +02:00
hinic_pmd_tx.h net/hinic: adds Tx queue xstats members 2020-04-21 13:57:07 +02:00
meson.build net/hinic: add flow validation operations 2019-10-23 16:43:08 +02:00
rte_pmd_hinic_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00