ice: Configure RSS LUT key only if RSS is enabled
authorMd Fahad Iqbal Polash <md.fahad.iqbal.polash@intel.com>
Tue, 16 Apr 2019 17:30:50 +0000 (10:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 May 2019 09:59:08 +0000 (02:59 -0700)
Call ice_vsi_cfg_rss_lut_key only if RSS is enabled.

Signed-off-by: Md Fahad Iqbal Polash <md.fahad.iqbal.polash@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>
drivers/net/ethernet/intel/ice/ice_lib.c

index 515b154547c52ca1744efc9fe572168f0b32426c..74008d748f3af196f83271769c6a9b284e9a38bb 100644 (file)
@@ -2400,6 +2400,13 @@ ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi,
 
                pf->q_left_tx -= vsi->alloc_txq;
                pf->q_left_rx -= vsi->alloc_rxq;
+
+               /* Do not exit if configuring RSS had an issue, at least
+                * receive traffic on first queue. Hence no need to capture
+                * return value
+                */
+               if (test_bit(ICE_FLAG_RSS_ENA, pf->flags))
+                       ice_vsi_cfg_rss_lut_key(vsi);
                break;
        case ICE_VSI_LB:
                ret = ice_vsi_alloc_rings(vsi);