netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Manlunas <felix.manlunas@cavium.com>
To: Or Gerlitz <gerlitz.or@gmail.com>
Cc: "Vatsavayi, Raghu" <Raghu.Vatsavayi@cavium.com>,
	David Miller <davem@davemloft.net>,
	Linux Netdev List <netdev@vger.kernel.org>,
	"Chickles, Derek" <Derek.Chickles@cavium.com>,
	"Burla, Satananda" <Satananda.Burla@cavium.com>
Subject: Re: [PATCH net-next 2/5] liquidio VF vxlan
Date: Mon, 12 Dec 2016 17:11:55 -0800	[thread overview]
Message-ID: <20161213011155.GA7791@felix.cavium.com> (raw)
In-Reply-To: <CAJ3xEMiMF3rMc1Ai0cuowNX=AkcJWQkVTqGx2QsHLriYVRr_tA@mail.gmail.com>

Or Gerlitz <gerlitz.or@gmail.com> wrote on Sat [2016-Dec-10 05:46:13 -0800]:
> On Fri, Dec 9, 2016 at 12:42 AM, Vatsavayi, Raghu
> <Raghu.Vatsavayi@cavium.com> wrote:
> >> From: Or Gerlitz [mailto:gerlitz.or@gmail.com]
> >> On Thu, Dec 8, 2016 at 11:00 PM, Raghu Vatsavayi
> >> <rvatsavayi@caviumnetworks.com> wrote:
> 
> >>> Adds VF vxlan offload support.
> 
> >> What's the use case for that? a VM running a VTEP, isn't that part needs to
> >> run @ the host?
> 
> > Our HW can support offloads for VF which is required if we load it on Hypervisor.
> 
> 
> +       nctrl.ncmd.u64 = 0;
> +       nctrl.ncmd.s.cmd = command;
> +       nctrl.ncmd.s.more = vxlan_cmd_bit;
> +       nctrl.ncmd.s.param1 = vxlan_port;
> +       nctrl.iq_no = lio->linfo.txpciq[0].s.q_no;
> +       nctrl.wait_time = 100;
> +       nctrl.netpndev = (u64)netdev;
> +       nctrl.cb_fn = liquidio_link_ctrl_cmd_completion;
> +
> +       ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl);
> 
> 1. What happens if > 1 one VF runs this code, each with different
> port? who wins? is the result well defined?

There is neither race nor contention, but all VFs "win" (meaning they get
what they ask for) because the VxLAN UDP port can be set on a per VF basis.
So the result of the above case is:  for VFs running in the host (not in
VMs), each VF interface is a VTEP with a distinct UDP port for VxLAN.

> 2. does octnet_send_nic_ctrl_pkt() goes to sleep? this is disallowed here

No, it does not go to sleep.

Felix

  reply	other threads:[~2016-12-13  1:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 21:00 [PATCH net-next 0/5] liquidio VF offloads and stats Raghu Vatsavayi
2016-12-08 21:00 ` [PATCH net-next 1/5] liquidio VF vlan support Raghu Vatsavayi
2016-12-08 21:00 ` [PATCH net-next 2/5] liquidio VF vxlan Raghu Vatsavayi
2016-12-08 21:08   ` Or Gerlitz
2016-12-08 22:42     ` Vatsavayi, Raghu
2016-12-10 13:46       ` Or Gerlitz
2016-12-13  1:11         ` Felix Manlunas [this message]
2016-12-08 21:00 ` [PATCH net-next 3/5] liquidio VF ethtool stats Raghu Vatsavayi
2016-12-08 21:00 ` [PATCH net-next 4/5] liquidio VF timestamp Raghu Vatsavayi
2016-12-08 21:09   ` Or Gerlitz
2016-12-08 22:41     ` Chickles, Derek
2016-12-08 21:00 ` [PATCH net-next 5/5] liquidio VF error handling Raghu Vatsavayi
2016-12-08 23:17 ` [PATCH net-next 0/5] liquidio VF offloads and stats David Miller

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=20161213011155.GA7791@felix.cavium.com \
    --to=felix.manlunas@cavium.com \
    --cc=Derek.Chickles@cavium.com \
    --cc=Raghu.Vatsavayi@cavium.com \
    --cc=Satananda.Burla@cavium.com \
    --cc=davem@davemloft.net \
    --cc=gerlitz.or@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).