Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: Felix Manlunas <felix.manlunas@cavium.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	raghu.vatsavayi@cavium.com, derek.chickles@cavium.com,
	satananda.burla@cavium.com, vijaya.guvva@cavium.com
Subject: Re: [PATCH net-next 1/3] liquidio: switchdev support for LiquidIO NIC
Date: Thu, 26 Oct 2017 15:00:56 -0700	[thread overview]
Message-ID: <20171026150056.263e0a2e@cakuba.netronome.com> (raw)
In-Reply-To: <20171026053727.GA17878@felix-thinkpad.cavium.com>

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	other threads:[~2017-10-26 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26  5:36 [PATCH net-next 0/3] liquidio: Switchdev support for LiquidIO NIC Felix Manlunas
2017-10-26  5:37 ` [PATCH net-next 1/3] liquidio: switchdev " Felix Manlunas
2017-10-26 22:00   ` Jakub Kicinski [this message]
2017-10-26  5:37 ` [PATCH net-next 2/3] liquidio: Configure switchdev with devlink Felix Manlunas
2017-10-26  5:37 ` [PATCH net-next 3/3] liquidio: ethtool support for switchdev ports Felix Manlunas
2017-10-26 22:03   ` Jakub Kicinski
2017-10-26  6:19 ` [PATCH net-next 0/3] liquidio: Switchdev support for LiquidIO NIC Jiri Pirko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171026150056.263e0a2e@cakuba.netronome.com \
    --to=jakub.kicinski@netronome.com \
    --cc=davem@davemloft.net \
    --cc=derek.chickles@cavium.com \
    --cc=felix.manlunas@cavium.com \
    --cc=netdev@vger.kernel.org \
    --cc=raghu.vatsavayi@cavium.com \
    --cc=satananda.burla@cavium.com \
    --cc=vijaya.guvva@cavium.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox