net: stmmac: move TX timer arm after DMA enable
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 18 Oct 2023 12:35:49 +0000 (14:35 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Oct 2023 13:41:31 +0000 (15:41 +0200)
commita594166387fe08e6f5a32130c400249a35b298f9
tree43434279e535ca2265d7c6e65bbdbc4e638cf32e
parent2d1a42cf7f77cda54dbbee18d00b1200e7bc22aa
net: stmmac: move TX timer arm after DMA enable

Move TX timer arm call after DMA interrupt is enabled again.

The TX timer arm function changed logic and now is skipped if a napi is
already scheduled. By moving the TX timer arm call after DMA is enabled,
we permit to correctly skip if a DMA interrupt has been fired and a napi
has been scheduled again.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c