]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Check for RSS key before setting value
authorTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 13 Apr 2017 14:26:07 +0000 (07:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 30 Apr 2017 03:01:04 +0000 (20:01 -0700)
commit06237961299a1167b42888dddeef2387de70c725
tree2a5b6187292cd60ffc15dc700f5a1adc75a57784
parent943d4209457e05582d278f26cac53e2473c72478
ixgbevf: Check for RSS key before setting value

The RSS key is being repopulated every time the interface is brought up
regardless of whether there is an existing value. If the user sets the RSS
key and the interface is brought up (e.g. reset), the user specified RSS
key will be overwritten.

This patch changes the rss_key to a pointer so we can check to see if the
key has been populated and preserve it accordingly.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ethtool.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c