Skip to content

Commit 242e345

Browse files
jbrandebkuba-moo
authored andcommitted
ice: fix over-shifted variable
Since the introduction of the ice driver the code has been double-shifting the RSS enabling field, because the define already has shifts in it and can't have the regular pattern of "a << shiftval & mask" applied. Most places in the code got it right, but one line was still wrong. Fix this one location for easy backports to stable. An in-progress patch fixes the defines to "standard" and will be applied as part of the regular -next process sometime after this one. Fixes: d76a60b ("ice: Add support for VLANs and offloads") Reviewed-by: Przemek Kitszel <[email protected]> CC: [email protected] Signed-off-by: Jesse Brandeburg <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Signed-off-by: Jacob Keller <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 61b40ce commit 242e345

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/intel/ice/ice_lib.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,8 +1201,7 @@ static void ice_set_rss_vsi_ctx(struct ice_vsi_ctx *ctxt, struct ice_vsi *vsi)
12011201

12021202
ctxt->info.q_opt_rss = ((lut_type << ICE_AQ_VSI_Q_OPT_RSS_LUT_S) &
12031203
ICE_AQ_VSI_Q_OPT_RSS_LUT_M) |
1204-
((hash_type << ICE_AQ_VSI_Q_OPT_RSS_HASH_S) &
1205-
ICE_AQ_VSI_Q_OPT_RSS_HASH_M);
1204+
(hash_type & ICE_AQ_VSI_Q_OPT_RSS_HASH_M);
12061205
}
12071206

12081207
static void

0 commit comments

Comments
 (0)