]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Set REG_RX_CPU_IDX() once in airoha_qdma_fill_rx_queue()
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 31 Mar 2026 10:33:24 +0000 (12:33 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 2 Apr 2026 13:13:22 +0000 (15:13 +0200)
commit269389ba539834ec80e4d55583fca2cd70e4dc9c
tree8fd0744426003c94ebf51434a7bed5da74e2ef9a
parentf1fa1157f426c92c0189e62487f631bb5905b31d
net: airoha: Set REG_RX_CPU_IDX() once in airoha_qdma_fill_rx_queue()

It is not necessary to update REG_RX_CPU_IDX register for each iteration
of the descriptor loop in airoha_qdma_fill_rx_queue routine.
Move REG_RX_CPU_IDX configuration out of the descriptor loop and rely on
the last queue head value updated in the descriptor loop.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260331-airoha-cpu-idx-out-off-loop-v1-1-75c66b428f50@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c