Module Name: src Committed By: msaitoh Date: Thu Jul 4 08:56:35 UTC 2019
Modified Files: src/sys/dev/pci/ixgbe: ix_txrx.c Log Message: Fix hung queue check when the queue number >= 31. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 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.53 src/sys/dev/pci/ixgbe/ix_txrx.c:1.54 --- src/sys/dev/pci/ixgbe/ix_txrx.c:1.53 Thu Jun 27 05:55:40 2019 +++ src/sys/dev/pci/ixgbe/ix_txrx.c Thu Jul 4 08:56:35 2019 @@ -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 @@ ixgbe_mq_start(struct ifnet *ifp, struct 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];