]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac4: Also use TBU interrupt to clean TX path
authorJose Abreu <jose.abreu@synopsys.com>
Tue, 19 Feb 2019 09:38:48 +0000 (10:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 23:42:34 +0000 (15:42 -0800)
commit3113bdb0ff89081dccfdb1105ce0c48fd6974f5b
treec95126415fd8d7fd716cbbc78f61a2ab4df4afef
parent9e7c4c9b561143533d454da92f5a6f5e7a68e14f
net: stmmac: dwmac4: Also use TBU interrupt to clean TX path

TBU interrupt is a normal interrupt and can be used to trigger the
cleaning of TX path. Lets check if it's active in DMA interrupt handler.

While at it, refactor a little bit the function:
- Don't check if RI is enabled because at function exit we will
  only clear the interrupts that are enabled so, no event will be
  missed.

In my tests with GMAC5 this increased performance.

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/dwmac4_lib.c