net/ena: enable stats for multi-process mode
authorStanislaw Kardach <kda@semihalf.com>
Wed, 23 Feb 2022 12:19:34 +0000 (13:19 +0100)
committerFerruh 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

index e36d06b..38fbe16 100644 (file)
@@ -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);