summaryrefslogtreecommitdiffstats
path: root/lib/mpi
diff options
context:
space:
mode:
authorJose Abreu <jose.abreu@synopsys.com>2019-01-09 10:06:00 +0100
committerDavid S. Miller <davem@davemloft.net>2019-01-11 15:35:06 -0800
commitfa0be0a43f101888ac677dba31b590963eafeaa1 (patch)
treeb075afe3743760f4b27da8f4a3b3dce9938def07 /lib/mpi
parent3b5094665e273c4a2a99f7f5f16977c0f1e19095 (diff)
downloadlinux-fa0be0a43f101888ac677dba31b590963eafeaa1.tar.bz2
net: stmmac: Prevent RX starvation in stmmac_napi_poll()
Currently, TX is given a budget which is consumed by stmmac_tx_clean() and stmmac_rx() is given the remaining non-consumed budget. This is wrong and in case we are sending a large number of packets this can starve RX because remaining budget will be low. Let's give always the same budget for RX and TX clean. While at it, check if we missed any interrupts while we were in NAPI callback by looking at DMA interrupt status. 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: Jose Abreu <joabreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions