OSDN Git Service

net: stmmac: Prevent missing interrupts when running NAPI
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 24 May 2019 08:20:26 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2019 20:45:57 +0000 (13:45 -0700)
commita976ca79e23f13bff79c14e7266cea4a0ea51e67
tree7a2eca63d6199d05edaa50feb116365a08d57821
parent0620ec6c62a5a07625b65f699adc5d1b90394ee6
net: stmmac: Prevent missing interrupts when running NAPI

When we trigger NAPI we are disabling interrupts but in case we receive
or send a packet in the meantime, as interrupts are disabled, we will
miss this event.

Trigger both NAPI instances (RX and TX) when at least one event happens
so that we don't miss any interrupts.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c