Module Name:    src
Committed By:   msaitoh
Date:           Tue Jul  2 08:38:48 UTC 2019

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

Log Message:
Sync with FreeBSD ix-3.3.10 part 2:
- Calculate vector's bit location correctly when the vector >= 31
  in ixgbe_allocate_msix().


To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/sys/dev/pci/ixgbe/ixgbe.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/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.190 src/sys/dev/pci/ixgbe/ixgbe.c:1.191
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.190	Tue Jul  2 08:32:18 2019
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Tue Jul  2 08:38:48 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.190 2019/07/02 08:32:18 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.191 2019/07/02 08:38:48 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -6540,7 +6540,7 @@ ixgbe_allocate_msix(struct adapter *adap
 			goto err_out;
 		}
 		que->msix = vector;
-		adapter->active_queues |= (u64)(1 << que->msix);
+		adapter->active_queues |= 1ULL << que->msix;
 
 		if (adapter->feat_en & IXGBE_FEATURE_RSS) {
 #ifdef	RSS

Reply via email to