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 Simplify ixgbe_msix_que(). No functional c...



details:   https://anonhg.NetBSD.org/src/rev/3bf94c3c6ea7
branches:  trunk
changeset: 366599:3bf94c3c6ea7
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jun 01 02:07:24 2022 +0000

description:
Simplify ixgbe_msix_que(). No functional change.

diffstat:

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

diffs (52 lines):

diff -r c2405bdf83ae -r 3bf94c3c6ea7 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Jun 01 00:50:24 2022 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Jun 01 02:07:24 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.315 2022/05/30 05:07:38 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.316 2022/06/01 02:07:24 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.315 2022/05/30 05:07:38 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.316 2022/06/01 02:07:24 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2799,7 +2799,6 @@
        struct ifnet    *ifp = adapter->ifp;
        struct tx_ring  *txr = que->txr;
        struct rx_ring  *rxr = que->rxr;
-       bool            more;
        u32             newitr = 0;
 
        /* Protect against spurious interrupts */
@@ -2815,13 +2814,6 @@
         */
        que->txrx_use_workqueue = adapter->txrx_use_workqueue;
 
-#ifdef __NetBSD__
-       /* Don't run ixgbe_rxeof in interrupt context */
-       more = true;
-#else
-       more = ixgbe_rxeof(que);
-#endif
-
        IXGBE_TX_LOCK(txr);
        ixgbe_txeof(txr);
        IXGBE_TX_UNLOCK(txr);
@@ -2882,10 +2874,7 @@
        rxr->packets = 0;
 
 no_calc:
-       if (more)
-               ixgbe_sched_handle_que(adapter, que);
-       else
-               ixgbe_enable_queue(adapter, que->msix);
+       ixgbe_sched_handle_que(adapter, que);
 
        return 1;
 } /* ixgbe_msix_que */



Home | Main Index | Thread Index | Old Index