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)
commite60ae00361bf4e5ef08cde5a30f131cf287ffe30
tree2a5b6187292cd60ffc15dc700f5a1adc75a57784
parent82fb670c5fdd5662c406871a6c21ebd55ba68e45
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