net/mlx5: Read congestion counters from all ports when lag is active
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlx5 / core / lag.c
index 83a0537..127bb92 100644 (file)
@@ -768,7 +768,7 @@ int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
 
        spin_lock(&lag_lock);
        ldev = mlx5_lag_dev_get(dev);
-       if (ldev && __mlx5_lag_is_roce(ldev)) {
+       if (ldev && __mlx5_lag_is_active(ldev)) {
                num_ports = MLX5_MAX_PORTS;
                mdev[MLX5_LAG_P1] = ldev->pf[MLX5_LAG_P1].dev;
                mdev[MLX5_LAG_P2] = ldev->pf[MLX5_LAG_P2].dev;