mlx5_sd_get_primary
(mlx5_sd_get_primary(priv->mdev) ==
mlx5_sd_get_primary(peer_priv->mdev));
struct mlx5_core_dev *primary = mlx5_sd_get_primary(priv->mdev);
if (!mlx5_lag_is_mpesw(mlx5_sd_get_primary(esw_attr->in_mdev)))
if (mlx5_sd_get_primary(in_mdev) !=
mlx5_sd_get_primary(peer_esw->dev))
struct mlx5_core_dev *primary = mlx5_sd_get_primary(esw->dev);
struct mlx5_core_dev *primary = mlx5_sd_get_primary(esw->dev);
primary = mlx5_sd_get_primary(dev) ?: dev;
primary = mlx5_sd_get_primary(dev);
mlx5_sd_for_each_dev(i, mlx5_sd_get_primary(dev), pos)
struct mlx5_core_dev *primary = mlx5_sd_get_primary(dev);
struct mlx5_core_dev *primary = mlx5_sd_get_primary(dev);
primary_sd = mlx5_get_sd(mlx5_sd_get_primary(secondary));
primary = mlx5_sd_get_primary(dev);
primary = mlx5_sd_get_primary(dev);
primary = mlx5_sd_get_primary(dev);
struct mlx5_core_dev *mlx5_sd_get_primary(struct mlx5_core_dev *dev);