r8169: make use of xmit_more
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 28 Jul 2019 09:25:19 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 18:05:12 +0000 (11:05 -0700)
commitef14358546b115d9ea4108f21c6badd97334ad18
treeb6f92f9ad0e38d4d027cfd609cedf8e5cde6e6eb
parent171a9bae68c72f2d1260c3825203760856e6793b
r8169: make use of xmit_more

There was a previous attempt to use xmit_more, but the change had to be
reverted because under load sometimes a transmit timeout occurred [0].
Maybe this was caused by a missing memory barrier, the new attempt
keeps the memory barrier before the call to netif_stop_queue like it
is used by the driver as of today. The new attempt also changes the
order of some calls as suggested by Eric.

[0] https://lkml.org/lkml/2019/2/10/39

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c