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 Increment legacy interrupt counter after c...



details:   https://anonhg.NetBSD.org/src/rev/6e4cb2e1db58
branches:  trunk
changeset: 359937:6e4cb2e1db58
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Feb 01 04:59:16 2022 +0000

description:
Increment legacy interrupt counter after checking INTx sharing.

diffstat:

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

diffs (32 lines):

diff -r 1d69ea40b6f5 -r 6e4cb2e1db58 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Tue Feb 01 01:28:26 2022 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Tue Feb 01 04:59:16 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.305 2022/01/25 01:56:22 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.306 2022/02/01 04:59:16 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.305 2022/01/25 01:56:22 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.306 2022/02/01 04:59:16 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -5273,12 +5273,12 @@
        /* Read and clear EICR */
        eicr = IXGBE_READ_REG(hw, IXGBE_EICR);
 
-       IXGBE_EVC_ADD(&adapter->stats.pf.legint, 1);
        if (eicr == 0) {
                IXGBE_EVC_ADD(&adapter->stats.pf.intzero, 1);
                IXGBE_WRITE_REG(hw, IXGBE_EIMS, eims_orig);
                return 0;
        }
+       IXGBE_EVC_ADD(&adapter->stats.pf.legint, 1);
 
        /* Queue (0) intr */
        if ((eicr & IXGBE_EIMC_RTX_QUEUE) != 0) {



Home | Main Index | Thread Index | Old Index