From: John Fastabend <john.fastabend@gmail.com>
To: Or Gerlitz <gerlitz.or@gmail.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
John Fastabend <john.r.fastabend@intel.com>,
David Miller <davem@davemloft.net>,
Linux Netdev List <netdev@vger.kernel.org>,
"nhorman@redhat.com" <nhorman@redhat.com>,
"sassmann@redhat.com" <sassmann@redhat.com>,
"jogreene@redhat.com" <jogreene@redhat.com>,
Alex Duyck <alexander.h.duyck@redhat.com>,
Matan Barak <matanb@mellanox.com>
Subject: Re: [net-next 01/14] ethtool: Add helper routines to pass vf to rx_flow_spec
Date: Thu, 28 May 2015 07:34:58 -0700 [thread overview]
Message-ID: <55672792.9030104@gmail.com> (raw)
In-Reply-To: <CAJ3xEMhfzvhq-Y==LUTFg9Be9oWZZzKHEaTODeqphowpY8XLGw@mail.gmail.com>
On 05/28/2015 06:18 AM, Or Gerlitz wrote:
> On Thu, May 28, 2015 at 2:25 PM, Jeff Kirsher
> <jeffrey.t.kirsher@intel.com> wrote:
>> From: John Fastabend <john.r.fastabend@intel.com>
>>
>> The ring_cookie is 64 bits wide which is much larger than can be used
>> for actual queue index values. So provide some helper routines to
>> pack a VF index into the cookie. This is useful to steer packets to
>> a VF ring without having to know the queue layout of the device.
>
> So this patch comes to generalize the proprietary solution introduced
> in the below commit?
>
Well I developed it in a bit different context, but I would expect
the same mechanism to be used for i40e and any other devices that can
support this.
> commit e7c8c60bc5d48994a67e4b1c7bfb01d6979dbc54
> Author: Anjali Singhai Jain <anjali.singhai@intel.com>
> Date: Tue Apr 7 19:45:31 2015 -0400
>
> i40e: Add support to program FDir SB rules for VF from PF through ethtool
>
> With this patch we can now add Flow director Sideband rules for a VF from
> it's PF. Here is an example on how it can be done when VF id = 5 and
> queue = 2:
>
> "ethtool -N ethx flow-type udp4 src-ip x.x.x.x dst-ip y.y.y.y
> src-port p1 dst-port p2 action 2 user-def 5"
>
> User-def specifies VF id and action specifies queue.
>
>
>> include/uapi/linux/ethtool.h | 25 +++++++++++++++++++++++++
>> 1 file changed, 25 insertions(+)
[...]
--
John Fastabend Intel Corporation
next prev parent reply other threads:[~2015-05-28 14:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 11:25 [net-next 00/14][pull request] Intel Wired LAN Driver Updates 2015-05-28 Jeff Kirsher
2015-05-28 11:25 ` [net-next 01/14] ethtool: Add helper routines to pass vf to rx_flow_spec Jeff Kirsher
2015-05-28 13:18 ` Or Gerlitz
2015-05-28 14:34 ` John Fastabend [this message]
2015-05-28 14:20 ` Sergei Shtylyov
2015-05-28 11:25 ` [net-next 02/14] ixgbe: Allow flow director to use entire queue space Jeff Kirsher
2015-05-28 11:25 ` [net-next 03/14] i40e: Collect PFC XOFF RX stats even in single TC case Jeff Kirsher
2015-05-28 11:25 ` [net-next 04/14] i40e: Disable offline diagnostics if VFs are enabled Jeff Kirsher
2015-05-28 11:25 ` [net-next 05/14] i40e/i40evf: Add ATR support for tunneled TCP/IPv4/IPv6 packets Jeff Kirsher
2015-05-28 11:25 ` [net-next 06/14] i40e/i40evf: Add stats to count Tunnel ATR hits Jeff Kirsher
2015-05-28 11:25 ` [net-next 07/14] i40e: Remove unnecessary pf members Jeff Kirsher
2015-05-28 12:56 ` Or Gerlitz
2015-05-28 11:25 ` [net-next 08/14] i40e/i40evf: Remove unneeded TODO Jeff Kirsher
2015-05-28 11:25 ` [net-next 09/14] i40e: fix unrecognized FCOE EOF case Jeff Kirsher
2015-05-28 11:25 ` [net-next 10/14] i40e: Move the FD ATR/SB messages to a higher debug level Jeff Kirsher
2015-05-28 11:25 ` [net-next 11/14] i40evf: skb->xmit_more support Jeff Kirsher
2015-05-28 11:25 ` [net-next 12/14] i40e/i40evf: force inline transmit functions Jeff Kirsher
2015-05-28 11:25 ` [net-next 13/14] i40e/i40evf: remove time_stamp member Jeff Kirsher
2015-05-28 11:25 ` [net-next 14/14] i40e: Bump version to 1.3.4 Jeff Kirsher
2015-05-31 1:10 ` [net-next 00/14][pull request] Intel Wired LAN Driver Updates 2015-05-28 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=55672792.9030104@gmail.com \
--to=john.fastabend@gmail.com \
--cc=alexander.h.duyck@redhat.com \
--cc=davem@davemloft.net \
--cc=gerlitz.or@gmail.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jogreene@redhat.com \
--cc=john.r.fastabend@intel.com \
--cc=matanb@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@redhat.com \
--cc=sassmann@redhat.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).