From: Stanislaw Kardach <k...@semihalf.com> Since statistic gathering is now proxied safely to primary process, it can be enabled in secondary processes.
Signed-off-by: Stanislaw Kardach <k...@semihalf.com> Reviewed-by: Michal Krawczyk <m...@semihalf.com> Reviewed-by: Shai Brandes <shaib...@amazon.com> --- drivers/net/ena/ena_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index e36d06ba91..38fbe1618e 100644 --- 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); -- 2.25.1