[11/21] net/ena: enable stats get function for MP mode
Checks
Commit Message
From: Stanislaw Kardach <kda@semihalf.com>
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 | 3 ---
1 file changed, 3 deletions(-)
@@ -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);