struct mlx5e_priv *priv = netdev_priv(dev);
        struct mlx5e_rep_priv *rpriv = priv->ppriv;
        struct mlx5_eswitch_rep *rep = rpriv->rep;
 -      int ret;
 +      int ret, pf_num;
 +
 +      ret = mlx5_lag_get_pf_num(priv->mdev, &pf_num);
 +      if (ret)
 +              return ret;
 +
-       if (rep->vport == FDB_UPLINK_VPORT)
++      if (rep->vport == MLX5_VPORT_UPLINK)
 +              ret = snprintf(buf, len, "p%d", pf_num);
 +      else
 +              ret = snprintf(buf, len, "pf%dvf%d", pf_num, rep->vport - 1);
  
 -      ret = snprintf(buf, len, "%d", rep->vport - 1);
        if (ret >= len)
                return -EOPNOTSUPP;