Skip to content

Commit 065fd83

Browse files
rvoskdavem330
authored andcommitted
net: mvneta: Fix the case where the last poll did not process all rx
For the case where the last mvneta_poll did not process all RX packets, we need to xor the pp->cause_rx_tx or port->cause_rx_tx before claculating the rx_queue. Fixes: 2dcf75e ("net: mvneta: Associate RX queues with each CPU") Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b317538 commit 065fd83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,11 +3036,10 @@ static int mvneta_poll(struct napi_struct *napi, int budget)
30363036
/* For the case where the last mvneta_poll did not process all
30373037
* RX packets
30383038
*/
3039-
rx_queue = fls(((cause_rx_tx >> 8) & 0xff));
3040-
30413039
cause_rx_tx |= pp->neta_armada3700 ? pp->cause_rx_tx :
30423040
port->cause_rx_tx;
30433041

3042+
rx_queue = fls(((cause_rx_tx >> 8) & 0xff));
30443043
if (rx_queue) {
30453044
rx_queue = rx_queue - 1;
30463045
if (pp->bm_priv)

0 commit comments

Comments
 (0)