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/28ceedbafb67
branches:  trunk
changeset: 962204:28ceedbafb67
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 3f5cd1fa1654 -r 28ceedbafb67 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