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 handling of IXGBE_REQUEST_TASK_NEED_AC...



details:   https://anonhg.NetBSD.org/src/rev/f57ae3719c7d
branches:  trunk
changeset: 937723:f57ae3719c7d
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Aug 24 18:16:04 2020 +0000

description:
Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR in ixgbe_handle_admin().

diffstat:

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

diffs (20 lines):

diff -r 50db4df3d47c -r f57ae3719c7d sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Mon Aug 24 12:58:16 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Mon Aug 24 18:16:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.239 2020/08/17 08:23:30 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.240 2020/08/24 18:16:04 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -4801,7 +4801,9 @@
 #endif
        }
        atomic_store_relaxed(&adapter->admin_pending, 0);
-       if ((req & IXGBE_REQUEST_TASK_NEED_ACKINTR) != 0) {
+       if ((adapter->task_requests & IXGBE_REQUEST_TASK_NEED_ACKINTR) != 0) {
+               atomic_and_32(&adapter->task_requests,
+                   ~IXGBE_REQUEST_TASK_NEED_ACKINTR);
                if ((adapter->feat_en & IXGBE_FEATURE_MSIX) != 0) {
                        /* Re-enable other interrupts */
                        IXGBE_WRITE_REG(hw, IXGBE_EIMS, IXGBE_EIMS_OTHER);



Home | Main Index | Thread Index | Old Index