net: stmmac: Let TX and RX interrupts be independently enabled/disabled
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 18 Dec 2019 10:24:44 +0000 (11:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 20:14:08 +0000 (12:14 -0800)
commit021bd5e369709717231338a182f00611794fb588
tree1e5363c4323b143cca0ba1ad24085a19419d75ca
parent7d0b447a3f82f5a1a70bae20c362f332e9fa91ea
net: stmmac: Let TX and RX interrupts be independently enabled/disabled

By using this mechanism we can get rid of the not so nice method of
scheduling TX NAPI when the RX was scheduled. No bandwidth reduction was
seen with this change.

Changes from v1:
- Remove useless comment (Jakub)
- Do not bind the TX clean to NAPI budget (Jakub)

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c