Module Name: src
Committed By: martin
Date: Sat Jun 3 14:46:08 UTC 2023
Modified Files:
src/sys/dev/pci [netbsd-9]: if_aq.c
Log Message:
Pull up following revision(s) (requested by rin in ticket #1637):
sys/dev/pci/if_aq.c: revision 1.45
aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.
To generate a diff of this commit:
cvs rdiff -u -r1.17.2.3 -r1.17.2.4 src/sys/dev/pci/if_aq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_aq.c
diff -u src/sys/dev/pci/if_aq.c:1.17.2.3 src/sys/dev/pci/if_aq.c:1.17.2.4
--- src/sys/dev/pci/if_aq.c:1.17.2.3 Tue Jul 7 12:02:29 2020
+++ src/sys/dev/pci/if_aq.c Sat Jun 3 14:46:07 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aq.c,v 1.17.2.3 2020/07/07 12:02:29 martin Exp $ */
+/* $NetBSD: if_aq.c,v 1.17.2.4 2023/06/03 14:46:07 martin Exp $ */
/**
* aQuantia Corporation Network Driver
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.17.2.3 2020/07/07 12:02:29 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.17.2.4 2023/06/03 14:46:07 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_if_aq.h"
@@ -4635,7 +4635,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;
}