Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Fix hung queue check when the queue number...



details:   https://anonhg.NetBSD.org/src/rev/92a38193d08f
branches:  trunk
changeset: 457579:92a38193d08f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 04 08:56:35 2019 +0000

description:
Fix hung queue check when the queue number >= 31.

diffstat:

 sys/dev/pci/ixgbe/ix_txrx.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9bd3a34b3bad -r 92a38193d08f sys/dev/pci/ixgbe/ix_txrx.c
--- a/sys/dev/pci/ixgbe/ix_txrx.c       Thu Jul 04 02:49:30 2019 +0000
+++ b/sys/dev/pci/ixgbe/ix_txrx.c       Thu Jul 04 08:56:35 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ix_txrx.c,v 1.53 2019/06/27 05:55:40 msaitoh Exp $ */
+/* $NetBSD: ix_txrx.c,v 1.54 2019/07/04 08:56:35 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -233,7 +233,7 @@
                i = (cpu_index(curcpu()) % ncpu) % adapter->num_queues;
 
        /* Check for a hung queue and pick alternative */
-       if (((1 << i) & adapter->active_queues) == 0)
+       if (((1ULL << i) & adapter->active_queues) == 0)
                i = ffs64(adapter->active_queues);
 
        txr = &adapter->tx_rings[i];



Home | Main Index | Thread Index | Old Index