r8169: fix sporadic transmit timeout issue

Holger reported sporadic transmit timeouts and it turned out that one
path misses ringing the doorbell. Fix was suggested by Eric.

Fixes: ef14358546 ("r8169: make use of xmit_more")
Suggested-by: Eric Dumazet <edumazet@google.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Heiner Kallweit 2019-08-12 20:47:40 +02:00 committed by David S. Miller
parent c162610c7d
commit 4773f9bdb4
1 changed files with 1 additions and 0 deletions

View File

@ -5681,6 +5681,7 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
*/ */
smp_wmb(); smp_wmb();
netif_stop_queue(dev); netif_stop_queue(dev);
door_bell = true;
} }
if (door_bell) if (door_bell)