From: Md Fahad Iqbal Polash Date: Tue, 16 Apr 2019 17:30:50 +0000 (-0700) Subject: ice: Configure RSS LUT key only if RSS is enabled X-Git-Tag: v5.4-rc1~616^2~403^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a9e32bb069435dc11e3c1b4aa7ebeda23b23e32;p=platform%2Fkernel%2Flinux-rpi.git ice: Configure RSS LUT key only if RSS is enabled Call ice_vsi_cfg_rss_lut_key only if RSS is enabled. Signed-off-by: Md Fahad Iqbal Polash Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index 515b154..74008d7 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -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);