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

XXX
Pull up to netbsd-10 and netbsd-9.
This commit is contained in:
rin 2023-05-29 08:00:05 +00:00
parent 9bacf14f2a
commit d708cb6fb0
1 changed files with 4 additions and 2 deletions

View File

@ -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 mbuf *m)
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;
}