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 Remove strange ixgbe_enable_intr() in ixgb...



details:   https://anonhg.NetBSD.org/src/rev/c2d27be4742b
branches:  trunk
changeset: 948287:c2d27be4742b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Dec 24 06:14:41 2020 +0000

description:
Remove strange ixgbe_enable_intr() in ixgbe_legacy_irq().

 If the interface is UP and the INTx line is shared with other devices,
it result in enabling all interrupt sources even if some of them are
disabled for the workqueue. Delete ixgbe_enable_intr() in ixgbe_legacy_irq().

diffstat:

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

diffs (18 lines):

diff -r 4677f8570d38 -r c2d27be4742b sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Dec 23 17:57:17 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Dec 24 06:14:41 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.263 2020/12/22 07:16:23 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.264 2020/12/24 06:14:41 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -5181,8 +5181,6 @@
        ++que->irqs.ev_count;
        if (eicr == 0) {
                adapter->stats.pf.intzero.ev_count++;
-               if ((ifp->if_flags & IFF_UP) != 0)
-                       ixgbe_enable_intr(adapter);
                return 0;
        }
 



Home | Main Index | Thread Index | Old Index