]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
commit7b1615d69e1cb2c30f7f20690533bc65b5b1bf4c
tree9c7c1da349cabd58fe3c2109bb434f8d5e02a79a
parent42bf3ab1d43c9c63f53aac245b9236c888daa20b
net: mvneta: Fix the case where the last poll did not process all rx

BugLink: https://bugs.launchpad.net/bugs/1870142
[ Upstream commit 065fd83e1be2e1ba0d446a257fd86a3cc7bddb51 ]

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: 2dcf75e2793c ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/ethernet/marvell/mvneta.c