summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
diff options
context:
space:
mode:
authorTony Nguyen <anthony.l.nguyen@intel.com>2017-04-13 07:26:07 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-04-29 20:01:04 -0700
commite60ae00361bf4e5ef08cde5a30f131cf287ffe30 (patch)
tree2a5b6187292cd60ffc15dc700f5a1adc75a57784 /drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
parent82fb670c5fdd5662c406871a6c21ebd55ba68e45 (diff)
downloadop-kernel-dev-e60ae00361bf4e5ef08cde5a30f131cf287ffe30.zip
op-kernel-dev-e60ae00361bf4e5ef08cde5a30f131cf287ffe30.tar.gz
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/ixgbevf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
index a8cbc2d..581f44b 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
@@ -319,7 +319,7 @@ struct ixgbevf_adapter {
spinlock_t mbx_lock;
unsigned long last_reset;
- u32 rss_key[IXGBEVF_VFRSSRK_REGS];
+ u32 *rss_key;
u8 rss_indir_tbl[IXGBEVF_X550_VFRETA_SIZE];
};
OpenPOWER on IntegriCloud