OSDN Git Service

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)
commit065fd83e1be2e1ba0d446a257fd86a3cc7bddb51
treecee687d8844a4156db06403983b264ce0d41acad
parentb317538c47943f9903860d83cc0060409e12d2ff
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: 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>
drivers/net/ethernet/marvell/mvneta.c