Module Name:    src
Committed By:   msaitoh
Date:           Wed May 16 07:51:17 UTC 2018

Modified Files:
        src/sys/dev/pci/ixgbe: ix_txrx.c

Log Message:
 Fix a problem that the watchdog timer sometimes mistakenly fires. Restore
TX sending check in the end of ixgbe_txeof which was wrongly removed in
ix_txrx.c rev. 1.42.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/ixgbe/ix_txrx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ix_txrx.c
diff -u src/sys/dev/pci/ixgbe/ix_txrx.c:1.42 src/sys/dev/pci/ixgbe/ix_txrx.c:1.43
--- src/sys/dev/pci/ixgbe/ix_txrx.c:1.42	Tue May  8 09:45:54 2018
+++ src/sys/dev/pci/ixgbe/ix_txrx.c	Wed May 16 07:51:17 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ix_txrx.c,v 1.42 2018/05/08 09:45:54 msaitoh Exp $ */
+/* $NetBSD: ix_txrx.c,v 1.43 2018/05/16 07:51:17 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -1216,6 +1216,9 @@ ixgbe_txeof(struct tx_ring *txr)
 	work += txr->num_desc;
 	txr->next_to_clean = work;
 
+	if (txr->tx_avail == txr->num_desc)
+		txr->sending = false;
+
 	return ((limit > 0) ? false : true);
 } /* ixgbe_txeof */
 

Reply via email to