]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: fix setting user defined RSS hash key
authorAlan Brady <alan.brady@intel.com>
Wed, 24 Aug 2016 18:33:46 +0000 (11:33 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:39:16 +0000 (19:39 -0500)
commit9ff0cccc17f33691f118cb164e0a422f5804fd36
tree15664da4613560152fa6abe27d791b29ae62ad32
parent341db8b73eb2cf0237f2d0ddd5ed8f06ef14312a
i40e: fix setting user defined RSS hash key

Orabug: 24568124

Previously, when using ethtool to change the RSS hash key, ethtool would
report back saying the old key was still being used and no error was
reported.  It was unclear whether it was being reported incorrectly or
being set incorrectly.  Debugging revealed 'i40e_set_rxfh()' returned
zero immediately instead of setting the key because a user defined
indirection table is not supplied when changing the hash key.

This fix instead changes it such that if an indirection table is not
supplied, then a default one is created and the hash key is now
correctly set.

Change-ID: Iddb621897ecf208650272b7ee46702cad7b69a71
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit f15823510246444052b35f148c7ae627842b0e05)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c