git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e359553
)
net/ena: enable stats for multi-process mode
author
Stanislaw Kardach
<kda@semihalf.com>
Wed, 23 Feb 2022 12:19:34 +0000
(13:19 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 23 Feb 2022 18:01:03 +0000
(19:01 +0100)
Since statistic gathering is now proxied safely to primary process, it
can be enabled in secondary processes.
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
drivers/net/ena/ena_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ena/ena_ethdev.c
b/drivers/net/ena/ena_ethdev.c
index
e36d06b
..
38fbe16
100644
(file)
--- a/
drivers/net/ena/ena_ethdev.c
+++ b/
drivers/net/ena/ena_ethdev.c
@@
-1068,9
+1068,6
@@
static int ena_stats_get(struct rte_eth_dev *dev,
int i;
int max_rings_stats;
- if (rte_eal_process_type() != RTE_PROC_PRIMARY)
- return -ENOTSUP;
-
memset(&ena_stats, 0, sizeof(ena_stats));
rte_spinlock_lock(&adapter->admin_lock);