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/2a3632c2d13a
branches:  trunk
changeset: 937730:2a3632c2d13a
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 9f87d9362d2a -r 2a3632c2d13a 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