From: Ben Hutchings <ben@decadent.org.uk>
To: Venkata Duvvuru <VenkatKumar.Duvvuru@Emulex.Com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next 3/4] ethtool: Support for configurable RSS hash key.
Date: Sun, 19 Jan 2014 18:27:28 +0000 [thread overview]
Message-ID: <1390156048.16433.114.camel@deadeye.wl.decadent.org.uk> (raw)
In-Reply-To: <BF3270C86E8B1349A26C34E4EC1C44CB2C83D8E5@CMEXMB1.ad.emulex.com>
[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]
On Fri, 2014-01-17 at 13:02 +0000, Venkata Duvvuru wrote:
> This ethtool patch primarily copies the ioctl command data structures from/to the User space and invokes the driver hook.
[...]
> --- a/include/uapi/linux/ethtool.h
> +++ b/include/uapi/linux/ethtool.h
> @@ -678,6 +678,22 @@ struct ethtool_rx_ntuple {
> struct ethtool_rx_ntuple_flow_spec fs;
> };
>
> +
> +/**
> + * struct ethtool_rss_hkey - command to set/get RSS hash key of the device.
> + * @cmd: Command number - %ETHTOOL_SET_RSS_HKEY/ETHTOOL_GET_RSS_HKEY
> + * @data: 40 or 16 byte rss hash key
> + * @data_len: rss hash key length
> + */
> +
> +#define RSS_HASH_KEY_LEN 40
This should have an 'ETHTOOL_' or 'ETH_' prefix. But I wonder whether
there should actually be a static maximum length.
> +/* RSS Hash key */
> +struct ethtool_rss_hkey {
> + __u32 cmd; /* ETHTOOL_SET/GET_RSS_HKEY */
> + __u8 data[RSS_HASH_KEY_LEN];
> + __u32 data_len;
> +};
[...]
How about putting data after the data_len and giving it a length of 0,
so this is extensible to an arbitrary length key?
If we're extending the RSS configuration interface, there are a few
other things that might be worth doing at the same time:
- Single commands to get/set both the key and the indirection table at
the same time
- Add a field to distinguish multiple RSS contexts (some hardware can
use RSS contexts together with filters, though RX NFC does not support
that yet)
Ben.
--
Ben Hutchings
friends: People who know you well, but like you anyway.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2014-01-19 18:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 13:02 [PATCH net-next 3/4] ethtool: Support for configurable RSS hash key Venkata Duvvuru
2014-01-19 18:27 ` Ben Hutchings [this message]
2014-01-20 12:23 ` Venkata Duvvuru
2014-01-20 13:20 ` Ben Hutchings
2014-01-22 12:12 ` Venkata Duvvuru
2014-01-23 5:39 ` Ben Hutchings
2014-01-23 13:47 ` Venkata Duvvuru
2014-01-23 15:09 ` Ben Hutchings
2014-01-24 12:00 ` Venkata Duvvuru
2014-01-26 2:37 ` Ben Hutchings
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=1390156048.16433.114.camel@deadeye.wl.decadent.org.uk \
--to=ben@decadent.org.uk \
--cc=VenkatKumar.Duvvuru@Emulex.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