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/2e7296698932
branches:  trunk
changeset: 943050:2e7296698932
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Aug 24 19:03:27 2020 +0000

description:
Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR again...

diffstat:

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

diffs (20 lines):

diff -r 79ac22ef5f49 -r 2e7296698932 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Mon Aug 24 18:42:17 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Mon Aug 24 19:03:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.243 2020/08/24 18:42:17 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.244 2020/08/24 19:03:27 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -4782,7 +4782,9 @@
         */
        IFNET_LOCK(ifp);
        IXGBE_CORE_LOCK(adapter);
-       while ((req = adapter->task_requests) != 0) {
+       while ((req =
+               (adapter->task_requests & ~IXGBE_REQUEST_TASK_NEED_ACKINTR))
+           != 0) {
                if ((req & IXGBE_REQUEST_TASK_LSC) != 0) {
                        ixgbe_handle_link(adapter);
                        atomic_and_32(&adapter->task_requests,



Home | Main Index | Thread Index | Old Index