]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: Fix the case where the last poll did not process all rx
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 16 Mar 2020 14:56:36 +0000 (22:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 22:06:24 +0000 (15:06 -0700)
commit196ad27bdf83c66bef110edbb8188f3c5a4e4e7e
treecee687d8844a4156db06403983b264ce0d41acad
parent1779410c81d645d0bf056d8eec884e364c6679ac
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: b7cfdd0e9916 ("net: mvneta: Associate RX queues with each CPU")
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c