]> 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)
commit8b97a3625ed1022e407c6e4a7019cad607d47999
tree2a5b6187292cd60ffc15dc700f5a1adc75a57784
parent655e99655b821b4da1b812753e5fd8c90896d8cb
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