diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-05-30 23:56:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-30 21:36:55 -0700 |
commit | 9fdd50c579802adad09028eba86e5a7ef7c9b738 (patch) | |
tree | 9fb97714e703626c1ee2d9778ba4b6beddc7b626 /drivers/net/ethernet | |
parent | 01bd753d039553cf63830823d1dcc8a864174afc (diff) |
r8169: don't reset tx ring indexes in rtl8169_tx_clear
In places where the indexes have to be reset, we call
rtl8169_init_ring_indexes() anyway after rtl8169_tx_clear().
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 6fcd35ac8110..43652c450892 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -3955,7 +3955,6 @@ static void rtl8169_tx_clear_range(struct rtl8169_private *tp, u32 start, static void rtl8169_tx_clear(struct rtl8169_private *tp) { rtl8169_tx_clear_range(tp, tp->dirty_tx, NUM_TX_DESC); - tp->cur_tx = tp->dirty_tx = 0; netdev_reset_queue(tp->dev); } |