From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>, davem@davemloft.net
Cc: John Fastabend <john.r.fastabend@intel.com>,
netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
jogreene@redhat.com, Alex Duyck <alexander.h.duyck@redhat.com>
Subject: Re: [net-next 01/14] ethtool: Add helper routines to pass vf to rx_flow_spec
Date: Thu, 28 May 2015 17:20:05 +0300 [thread overview]
Message-ID: <55672415.4070300@cogentembedded.com> (raw)
In-Reply-To: <1432812339-17129-2-git-send-email-jeffrey.t.kirsher@intel.com>
Hello.
On 5/28/2015 2:25 PM, Jeff Kirsher 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.
> CC: Alex Duyck <alexander.h.duyck@redhat.com>
> Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
> include/uapi/linux/ethtool.h | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
> index ae832b4..0594933 100644
> --- a/include/uapi/linux/ethtool.h
> +++ b/include/uapi/linux/ethtool.h
> @@ -796,6 +796,31 @@ struct ethtool_rx_flow_spec {
> __u32 location;
> };
>
> +/* How rings are layed out when accessing virtual functions or
s/layed/laid/.
> + * offloaded queues is device specific. To allow users to do flow
> + * steering and specify these queues the ring cookie is partitioned
> + * into a 32bit queue index with an 8 bit virtual function id.
> + * This also leaves the 3bytes for further specifiers. It is possible
> + * future devices may support more than 256 virtual functions if
> + * devices start supporting PCIe w/ARI. However at the moment I
> + * do not know of any devices that support this so I do not reserve
> + * space for this at this time. If a future patch consumes the next
> + * byte it should be aware of this possiblity.
Possibility.
[...]
WBR, Sergei
next prev parent reply other threads:[~2015-05-28 14:20 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
2015-05-28 14:20 ` Sergei Shtylyov [this message]
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=55672415.4070300@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=alexander.h.duyck@redhat.com \
--cc=davem@davemloft.net \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jogreene@redhat.com \
--cc=john.r.fastabend@intel.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).