]> 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)
commit57dbff3e22a45c03ead6f66a1314c1b4bbb10a65
treecee687d8844a4156db06403983b264ce0d41acad
parent4cdec5fd87c3a11eda4c368140f2edb75880fbcd
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: 4b74fb0e3e05 ("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