From: "John W. Linville" <linville@tuxdriver.com>
To: Gal Pressman <galp@mellanox.com>
Cc: Jakub Kicinski <kubakici@wp.pl>,
netdev@vger.kernel.org, Eyal Perry <eyalpe@mellanox.com>
Subject: Re: [PATCH ethtool] ethtool: Support for configurable RSS hash function
Date: Wed, 29 Mar 2017 10:49:22 -0400 [thread overview]
Message-ID: <20170329144921.GC18103@tuxdriver.com> (raw)
In-Reply-To: <29780e3c-b8df-a4f7-72f5-53e94bd448b4@mellanox.com>
On Wed, Mar 29, 2017 at 02:56:38PM +0300, Gal Pressman wrote:
> On 27/03/2017 21:02, John W. Linville wrote:
> > On Sat, Mar 25, 2017 at 02:50:47PM -0700, Jakub Kicinski wrote:
> >> On Wed, 8 Mar 2017 16:03:51 +0200, Gal Pressman wrote:
> >>> This ethtool patch adds support to set and get the current RSS hash
> >>> function for the device through the new hfunc mask field in the
> >>> ethtool_rxfh struct. Kernel supported hash function names are queried
> >>> with ETHTOOL_GSTRINGS - each string is corresponding with a bit in hfunc
> >>> mask according to its index in the string-set.
> >>>
> >>> Signed-off-by: Eyal Perry <eyalpe@mellanox.com>
> >>> Signed-off-by: Gal Pressman <galp@mellanox.com>
> >>> Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
> >> Hi John,
> >>
> >> It seems you have applied both my earlier patch with get support and
> >> this:
> >>
> >> adbaa18b9bc1 ("ethtool: Support for configurable RSS hash function")
> >> b932835d2302 ("ethtool: print hash function with ethtool -x|--show-rxfh-indir")
Damn it! I was bamboozled...
> >> Now we print the RSS function twice:
> >>
> >> RX flow hash indirection table for em4 with 4 RX ring(s):
> >> 0: [...]
> >> RSS hash function: toeplitz <--- from my adbaa18b9bc1
This should have said "<--- from my b932835d2302"...
> >> RSS hash key:
> >> Operation not supported
> >> RSS hash function: <--- from this patch
> >> toeplitz: on
> >> xor: off
> >> crc32: off
> >>
> >> Reverting my patch is probably the easiest way forward, although I find
> >> it more concise and easier to parse in test scripts :)
> > Thanks for pointing-out this issue! I apologize for my own confusion.
> >
> > As you suggest, I will be reverting your patch.
> >
> > Thanks,
> >
> > John
> 126464e4da18 ('Revert "ethtool: Support for configurable RSS hash function"')
>
> Seems like you ended up reverting my patch instead of Jakub's?
> We lost the set hfunc functionality.
Confused by the swapped commit IDs above, I dutifully reverted
"adbaa18b9bc1"...ugh...
Alright, I'll have to tighten-up my game a bit! From here I'll revert
b932835d2302 and reinstate adbaa18b9bc1, hopefully bringing this
little misadventure to a close.
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
prev parent reply other threads:[~2017-03-29 15:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 14:03 [PATCH ethtool] ethtool: Support for configurable RSS hash function Gal Pressman
2017-03-25 21:50 ` Jakub Kicinski
2017-03-26 10:50 ` Gal Pressman
2017-03-27 18:02 ` John W. Linville
2017-03-29 11:56 ` Gal Pressman
2017-03-29 14:49 ` John W. Linville [this message]
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=20170329144921.GC18103@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=eyalpe@mellanox.com \
--cc=galp@mellanox.com \
--cc=kubakici@wp.pl \
--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).