Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci aq(4): if_transmit: Invoke softint_schedule(9) w...



details:   https://anonhg.NetBSD.org/src/rev/e09456595988
branches:  trunk
changeset: 376058:e09456595988
user:      rin <rin%NetBSD.org@localhost>
date:      Mon May 29 08:00:05 2023 +0000

description:
aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.

XXX
Pull up to netbsd-10 and netbsd-9.

diffstat:

 sys/dev/pci/if_aq.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0984ff5c7269 -r e09456595988 sys/dev/pci/if_aq.c
--- a/sys/dev/pci/if_aq.c       Mon May 29 03:56:52 2023 +0000
+++ b/sys/dev/pci/if_aq.c       Mon May 29 08:00:05 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aq.c,v 1.44 2023/01/26 01:24:19 ryo Exp $   */
+/*     $NetBSD: if_aq.c,v 1.45 2023/05/29 08:00:05 rin Exp $   */
 
 /**
  * aQuantia Corporation Network Driver
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.44 2023/01/26 01:24:19 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.45 2023/05/29 08:00:05 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_if_aq.h"
@@ -5901,7 +5901,9 @@ aq_transmit(struct ifnet *ifp, struct mb
                aq_send_common_locked(ifp, sc, txring, true);
                mutex_exit(&txring->txr_mutex);
        } else {
+               kpreempt_disable();
                softint_schedule(txring->txr_softint);
+               kpreempt_enable();
        }
        return 0;
 }



Home | Main Index | Thread Index | Old Index