Module Name:    src
Committed By:   knakahara
Date:           Thu Dec 20 09:47:15 UTC 2018

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

Log Message:
Apply the same fix as if_wm.c:r1.606 to ixg(4). Pointed out by msaitoh@n.o, 
thanks.

XXX pullup-8


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 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.50 src/sys/dev/pci/ixgbe/ix_txrx.c:1.51
--- src/sys/dev/pci/ixgbe/ix_txrx.c:1.50	Thu Sep  6 08:20:12 2018
+++ src/sys/dev/pci/ixgbe/ix_txrx.c	Thu Dec 20 09:47:15 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ix_txrx.c,v 1.50 2018/09/06 08:20:12 msaitoh Exp $ */
+/* $NetBSD: ix_txrx.c,v 1.51 2018/12/20 09:47:15 knakahara Exp $ */
 
 /******************************************************************************
 
@@ -230,7 +230,7 @@ ixgbe_mq_start(struct ifnet *ifp, struct
 			i = m->m_pkthdr.flowid % adapter->num_queues;
 	} else
 #endif /* 0 */
-		i = cpu_index(curcpu()) % adapter->num_queues;
+		i = (cpu_index(curcpu()) % ncpu) % adapter->num_queues;
 
 	/* Check for a hung queue and pick alternative */
 	if (((1 << i) & adapter->active_queues) == 0)

Reply via email to