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 Sync with FreeBSD ix-3.3.10 part 2:



details:   https://anonhg.NetBSD.org/src/rev/1ca4db839e1c
branches:  trunk
changeset: 962174:1ca4db839e1c
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jul 02 08:38:48 2019 +0000

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

diffstat:

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

diffs (18 lines):

diff -r 04bc980796b5 -r 1ca4db839e1c sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Tue Jul 02 08:32:18 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Tue Jul 02 08:38:48 2019 +0000
@@ -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 @@
                        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



Home | Main Index | Thread Index | Old Index