Skip to content

Commit 60aeca6

Browse files
agerasymanguy11
authored andcommitted
ice: Use ICE_RLAN_BASE_S instead of magic number
Commit 72adf24 ("ice: Move common functions out of ice_main.c part 2/7") moved an older version of ice_setup_rx_ctx() function with usage of magic number 7. Reimplement the commit 5ab5224 ("ice: Cleanup magic number") to use ICE_RLAN_BASE_S instead of magic number. Signed-off-by: Anatolii Gerasymenko <[email protected]> Tested-by: Gurucharan G <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent c7cb9df commit 60aeca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static int ice_setup_rx_ctx(struct ice_rx_ring *ring)
389389
* Indicates the starting address of the descriptor queue defined in
390390
* 128 Byte units.
391391
*/
392-
rlan_ctx.base = ring->dma >> 7;
392+
rlan_ctx.base = ring->dma >> ICE_RLAN_BASE_S;
393393

394394
rlan_ctx.qlen = ring->count;
395395

0 commit comments

Comments
 (0)