Skip to content
Commit 330543d0 authored by Junxiao Chang's avatar Junxiao Chang Committed by Paolo Abeni
Browse files

net: stmmac: remove duplicate dma queue channel macros



It doesn't need extra macros for queue 0 & 4. Same macro could
be used for all 8 queues. Related queue/channel functions could
be combined together.

Original macro which has two same parameters is unsafe macro and
might have potential side effects. Each MTL RxQ DMA channel mask
is 4 bits, so using (0xf << chan) instead of GENMASK(x + 3, x) to
avoid unsafe macro.

Signed-off-by: default avatarJunxiao Chang <junxiao.chang@intel.com>
Link: https://lore.kernel.org/r/20221025081747.1884926-1-junxiao.chang@intel.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 95d9a3da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment