svn commit: r353687 - head/sys/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Thu Oct 17 17:02:51 UTC 2019
Author: glebius
Date: Thu Oct 17 17:02:50 2019
New Revision: 353687
URL: https://svnweb.freebsd.org/changeset/base/353687
Log:
Quickly fix up r353683: enter the epoch before calling into netisr_dispatch().
Modified:
head/sys/netinet/igmp.c
Modified: head/sys/netinet/igmp.c
==============================================================================
--- head/sys/netinet/igmp.c Thu Oct 17 16:38:44 2019 (r353686)
+++ head/sys/netinet/igmp.c Thu Oct 17 17:02:50 2019 (r353687)
@@ -2174,6 +2174,7 @@ igmp_slowtimo_vnet(void)
static int
igmp_v1v2_queue_report(struct in_multi *inm, const int type)
{
+ struct epoch_tracker et;
struct ifnet *ifp;
struct igmp *igmp;
struct ip *ip;
@@ -2223,7 +2224,9 @@ igmp_v1v2_queue_report(struct in_multi *inm, const int
m->m_flags |= M_IGMP_LOOP;
CTR2(KTR_IGMPV3, "%s: netisr_dispatch(NETISR_IGMP, %p)", __func__, m);
+ NET_EPOCH_ENTER(et);
netisr_dispatch(NETISR_IGMP, m);
+ NET_EPOCH_EXIT(et);
return (0);
}
More information about the svn-src-all
mailing list