svn commit: r357005 - head/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Thu Jan 23 01:25:33 UTC 2020
Author: glebius
Date: Thu Jan 23 01:25:32 2020
New Revision: 357005
URL: https://svnweb.freebsd.org/changeset/base/357005
Log:
Mark swi_net() as INTR_TYPE_NET and stop entering epoch there.
Modified:
head/sys/net/netisr.c
Modified: head/sys/net/netisr.c
==============================================================================
--- head/sys/net/netisr.c Thu Jan 23 01:24:47 2020 (r357004)
+++ head/sys/net/netisr.c Thu Jan 23 01:25:32 2020 (r357005)
@@ -861,7 +861,6 @@ static u_int
netisr_process_workstream_proto(struct netisr_workstream *nwsp, u_int proto)
{
struct netisr_work local_npw, *npwp;
- struct epoch_tracker et;
u_int handled;
struct mbuf *m;
@@ -891,7 +890,6 @@ netisr_process_workstream_proto(struct netisr_workstre
npwp->nw_len = 0;
nwsp->nws_pendingbits &= ~(1 << proto);
NWS_UNLOCK(nwsp);
- NET_EPOCH_ENTER(et);
while ((m = local_npw.nw_head) != NULL) {
local_npw.nw_head = m->m_nextpkt;
m->m_nextpkt = NULL;
@@ -904,7 +902,6 @@ netisr_process_workstream_proto(struct netisr_workstre
netisr_proto[proto].np_handler(m);
CURVNET_RESTORE();
}
- NET_EPOCH_EXIT(et);
KASSERT(local_npw.nw_len == 0,
("%s(%u): len %u", __func__, proto, local_npw.nw_len));
if (netisr_proto[proto].np_drainedcpu)
@@ -1248,7 +1245,7 @@ netisr_start_swi(u_int cpuid, struct pcpu *pc)
nwsp->nws_cpu = cpuid;
snprintf(swiname, sizeof(swiname), "netisr %u", cpuid);
error = swi_add(&nwsp->nws_intr_event, swiname, swi_net, nwsp,
- SWI_NET, INTR_MPSAFE, &nwsp->nws_swi_cookie);
+ SWI_NET, INTR_TYPE_NET | INTR_MPSAFE, &nwsp->nws_swi_cookie);
if (error)
panic("%s: swi_add %d", __func__, error);
pc->pc_netisr = nwsp->nws_intr_event;
More information about the svn-src-all
mailing list