[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171026150056.263e0a2e@cakuba.netronome.com>
Date: Thu, 26 Oct 2017 15:00:56 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Felix Manlunas <felix.manlunas@...ium.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
raghu.vatsavayi@...ium.com, derek.chickles@...ium.com,
satananda.burla@...ium.com, vijaya.guvva@...ium.com
Subject: Re: [PATCH net-next 1/3] liquidio: switchdev support for LiquidIO
NIC
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".
Powered by blists - more mailing lists