From: Stephen Hemminger <stephen@networkplumber.org>
To: Shahed Shaikh <shahed.shaikh@qlogic.com>
Cc: Or Gerlitz <or.gerlitz@gmail.com>,
Joseph Gasparakis <joseph.gasparakis@intel.com>,
John Fastabend <john.r.fastabend@intel.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Dept-HSG Linux NIC Dev <Dept-HSGLinuxNICDev@qlogic.com>
Subject: Re: [PATCH net-next 1/5] vxlan: Make VXLAN default UDP port number available for others
Date: Tue, 11 Mar 2014 08:28:09 -0700 [thread overview]
Message-ID: <20140311082809.73b83228@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <262CB373A6D1F14F9B81E82F74F77D5A46F798F5@avmb2.qlogic.org>
On Tue, 11 Mar 2014 07:22:31 +0000
Shahed Shaikh <shahed.shaikh@qlogic.com> wrote:
> > -----Original Message-----
> > From: Or Gerlitz [mailto:or.gerlitz@gmail.com]
> > Sent: Tuesday, March 11, 2014 12:12 PM
> > To: Shahed Shaikh; Joseph Gasparakis; John Fastabend
> > Cc: David Miller; netdev; Dept-HSG Linux NIC Dev
> > Subject: Re: [PATCH net-next 1/5] vxlan: Make VXLAN default UDP port
> > number available for others
> >
> ...
> > >> >
> > >> > Although vxlan module has capability to notify udp ports to other
> > >> > interested net devices using .ndo_add_rx_vxlan_port and
> > >> > .ndo_del_rx_vxlan_port, there could be some devices which support
> > >> > vxlan offload but not interested in updating udp port numbers.
> > >> > This may be because some hardware do not support programming
> > >> > multiple udp ports and their drivers may decide to program only
> > >> > default udp port into adapter. So that adapter, at least, can do
> > >> > offloading for default udp port number.
> > >>
> > >> Indeed, but the default port number can be unused while another port
> > >> is used. The ndo will be invoked only behalf of an actual instancing
> > >> of udp port for listener socket (== destination port you want the hw
> > >> to indentify), what's wrong with support this ndo also for devices
> > >> that supported limited (say
> > >> one) such port?
> > >
> > >
> > > If driver implements .ndo for udp port and user creates multiple
> > > vxlan device with different udp ports, it may end up programming the
> > > udp port which may not go through the adapter and no offload will
> > > happen. OTOH, if drive does not implement .ndo and if user is aware
> > > that driver is capable of offloading for default port, he can at least crate
> > vxlan device on top of qlcnic interface with default udp port. So, there is no
> > chance for other udp port numbers to replace default udp port and disturb
> > offloading.
> >
> > I see your point, but doesn't this suggests we need to somehow enhance
> > the current framework to let drivers know which vxlan traffic is expected to
> > be received over them according to the current routing rules?
>
> Agree. Because of this limitation I used default udp port for offloading.
>
> > I understand this is a bit tricky because vxlan and routing are l3 constructs
> > while drivers deal with l2, John/Joseph - what's your thinking here?
>
> Yes. May be John, Joseph or Stephen can suggest on this.
>
> Thanks,
> Shahed
>
Is it possible to do "lazy bind" to port, and set up offload when the
first VXLAN is created? For most user's they will use one port and multiplex
by VNI. But there maybe migration scenario's with multiple ports.
The kernel made unfortunate choice of non-standard port, and has to
stick with that. The ip command tries to nudge users to use the correct IANA
port, therefore correct offload should wait until the first tunnel is created.
next prev parent reply other threads:[~2014-03-11 15:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-10 16:48 [PATCH net-next 0/5] VXLAN offload support Shahed Shaikh
2014-03-10 16:48 ` [PATCH net-next 1/5] vxlan: Make VXLAN default UDP port number available for others Shahed Shaikh
2014-03-10 19:43 ` Stephen Hemminger
2014-03-11 5:37 ` Shahed Shaikh
2014-03-10 19:57 ` Or Gerlitz
2014-03-11 5:41 ` Shahed Shaikh
2014-03-11 6:42 ` Or Gerlitz
2014-03-11 7:22 ` Shahed Shaikh
2014-03-11 15:28 ` Stephen Hemminger [this message]
2014-03-12 9:44 ` Shahed Shaikh
2014-03-11 17:28 ` Joseph Gasparakis
2014-03-12 10:20 ` Shahed Shaikh
2014-03-10 16:48 ` [PATCH net-next 2/5] qlcnic: Get NIC capabilities using mailbox poll mode Shahed Shaikh
2014-03-10 16:49 ` [PATCH net-next 3/5] qlcnic: Add VXLAN Tx offload support Shahed Shaikh
2014-03-10 16:49 ` [PATCH net-next 4/5] qlcnic: Add VXLAN Rx offload support for 84xx Shahed Shaikh
2014-03-10 16:49 ` [PATCH net-next 5/5] qlcnic: Update version to 5.3.57 Shahed Shaikh
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=20140311082809.73b83228@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber.org \
--cc=Dept-HSGLinuxNICDev@qlogic.com \
--cc=davem@davemloft.net \
--cc=john.r.fastabend@intel.com \
--cc=joseph.gasparakis@intel.com \
--cc=netdev@vger.kernel.org \
--cc=or.gerlitz@gmail.com \
--cc=shahed.shaikh@qlogic.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;
as well as URLs for NNTP newsgroup(s).