mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
ice: Use ICE_RLAN_BASE_S instead of magic number
Commit72adf2421d
("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 commit5ab522443b
("ice: Cleanup magic number") to use ICE_RLAN_BASE_S instead of magic number. Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
c7cb9dfc57
commit
60aeca6dc4
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ static int ice_setup_rx_ctx(struct ice_rx_ring *ring)
|
|||
* Indicates the starting address of the descriptor queue defined in
|
||||
* 128 Byte units.
|
||||
*/
|
||||
rlan_ctx.base = ring->dma >> 7;
|
||||
rlan_ctx.base = ring->dma >> ICE_RLAN_BASE_S;
|
||||
|
||||
rlan_ctx.qlen = ring->count;
|
||||
|
||||
|
|
Loading…
Reference in a new issue