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 Don't increment que->req.ev_count in MSI-X...



details:   https://anonhg.NetBSD.org/src/rev/7b34c83f5adc
branches:  trunk
changeset: 830994:7b34c83f5adc
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Mar 07 08:01:32 2018 +0000

description:
Don't increment que->req.ev_count in MSI-X interrupt because it's not
reschedule.

diffstat:

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

diffs (39 lines):

diff -r 8d59a7950da1 -r 7b34c83f5adc sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Mar 07 06:55:01 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Mar 07 08:01:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.129 2018/03/07 03:29:10 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.130 2018/03/07 08:01:32 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -2527,7 +2527,6 @@
 
 no_calc:
        if (more) {
-               que->req.ev_count++;
                if (adapter->txrx_use_workqueue) {
                        /*
                         * adapter->que_wq is bound to each CPU instead of
diff -r 8d59a7950da1 -r 7b34c83f5adc sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Wed Mar 07 06:55:01 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Wed Mar 07 08:01:32 2018 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.85 2018/03/07 03:29:10 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.86 2018/03/07 08:01:32 msaitoh Exp $*/
 
 /******************************************************************************
 
@@ -959,10 +959,9 @@
        rxr->packets = 0;
 
 no_calc:
-       if (more) {
-               que->req.ev_count++;
+       if (more)
                softint_schedule(que->que_si);
-       } else /* Re-enable this interrupt */
+       else /* Re-enable this interrupt */
                ixv_enable_queue(adapter, que->msix);
 
        return 1;



Home | Main Index | Thread Index | Old Index