Skip to content

Commit

Permalink
8139cp: Call __cp_set_rx_mode() from cp_tx_timeout()
Browse files Browse the repository at this point in the history
Unless we reset the RX config, on real hardware I don't seem to receive
any packets after a TX timeout.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Sep 21, 2015
1 parent fc27bd1 commit 7a8a8e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/realtek/8139cp.c
Original file line number Diff line number Diff line change
@@ -1261,6 +1261,7 @@ static void cp_tx_timeout(struct net_device *dev)
cp_clean_rings(cp);
rc = cp_init_rings(cp);
cp_start_hw(cp);
__cp_set_rx_mode(dev);
cp_enable_irq(cp);

netif_wake_queue(dev);

0 comments on commit 7a8a8e7

Please sign in to comment.