diff options
author | Paul Greenwalt <paul.greenwalt@intel.com> | 2019-02-28 18:25:54 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-05-02 04:11:47 -0400 |
commit | b4b418b3ad7e09aa8d3be84c5f096d770797cfad (patch) | |
tree | a3e465a1505e57fdf719d73cd38006855dbdc55c /drivers/net/ethernet/intel/ice/ice_lib.c | |
parent | 0c2561c81f5d089781f7cb24b8ce9e52ac716f61 (diff) |
ice: Add 52 byte RSS hash key support
Add support to set 52 byte RSS hash key.
Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@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/ice/ice_lib.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index e75d8c4fadc6..982a3a9e9b8d 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c | |||
@@ -1394,7 +1394,6 @@ int ice_vsi_manage_rss_lut(struct ice_vsi *vsi, bool ena) | |||
1394 | */ | 1394 | */ |
1395 | static int ice_vsi_cfg_rss_lut_key(struct ice_vsi *vsi) | 1395 | static int ice_vsi_cfg_rss_lut_key(struct ice_vsi *vsi) |
1396 | { | 1396 | { |
1397 | u8 seed[ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE]; | ||
1398 | struct ice_aqc_get_set_rss_keys *key; | 1397 | struct ice_aqc_get_set_rss_keys *key; |
1399 | struct ice_pf *pf = vsi->back; | 1398 | struct ice_pf *pf = vsi->back; |
1400 | enum ice_status status; | 1399 | enum ice_status status; |
@@ -1429,13 +1428,12 @@ static int ice_vsi_cfg_rss_lut_key(struct ice_vsi *vsi) | |||
1429 | } | 1428 | } |
1430 | 1429 | ||
1431 | if (vsi->rss_hkey_user) | 1430 | if (vsi->rss_hkey_user) |
1432 | memcpy(seed, vsi->rss_hkey_user, | 1431 | memcpy(key, |
1433 | ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE); | 1432 | (struct ice_aqc_get_set_rss_keys *)vsi->rss_hkey_user, |
1433 | ICE_GET_SET_RSS_KEY_EXTEND_KEY_SIZE); | ||
1434 | else | 1434 | else |
1435 | netdev_rss_key_fill((void *)seed, | 1435 | netdev_rss_key_fill((void *)key, |
1436 | ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE); | 1436 | ICE_GET_SET_RSS_KEY_EXTEND_KEY_SIZE); |
1437 | memcpy(&key->standard_rss_key, seed, | ||
1438 | ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE); | ||
1439 | 1437 | ||
1440 | status = ice_aq_set_rss_key(&pf->hw, vsi->idx, key); | 1438 | status = ice_aq_set_rss_key(&pf->hw, vsi->idx, key); |
1441 | 1439 | ||