]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Always arm TX Timer at end of transmission start
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 18 Dec 2019 10:17:43 +0000 (11:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 20:04:18 +0000 (12:04 -0800)
commit758649d88d222d93e2902e23a68c2c40d9365159
tree128c69d4509bb6e719054d7306bb215557a77ccf
parenta26a66c81e5297bddd8eb21811c0dc66e406fcfd
net: stmmac: Always arm TX Timer at end of transmission start

If TX Coalesce timer is enabled we should always arm it, otherwise we
may hit the case where an interrupt is missed and the TX Queue will
timeout.

Arming the timer does not necessarly mean it will run the tx_clean()
because this function is wrapped around NAPI launcher.

Fixes: 0b6d4f7dc640 ("stmmac: add the initial tx coalesce schema")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c