On Wed, 25 Oct 2017 22:37:27 -0700, Felix Manlunas wrote:
> +static int
> +lio_vf_rep_phys_port_name(struct net_device *dev,
> +                       char *buf, size_t len)
> +{
> +     struct lio_vf_rep_desc *vf_rep = netdev_priv(dev);
> +     struct octeon_device *oct = vf_rep->oct;
> +     int ret;
> +
> +     ret = snprintf(buf, len, "%d", vf_rep->ifidx - oct->pf_num * 64 - 1);
> +     if (ret >= len)
> +             return -EOPNOTSUPP;
> +
> +     return 0;
> +}

If you have multiple PFs please name the representors "pfXvfY".

Reply via email to