summaryrefslogtreecommitdiffstats
path: root/sys/netinet/igmp.c
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2009-05-06 13:30:46 +0000
committerzec <zec@FreeBSD.org>2009-05-06 13:30:46 +0000
commit0df066f30dddba3c5e7fba8068042b6a4e107faf (patch)
treec6f78300310cd1a978dc69b42221ee3cb38b83b8 /sys/netinet/igmp.c
parentd157e810aefb1bb63831ae8c6a41d0ccc7cbf406 (diff)
downloadFreeBSD-src-0df066f30dddba3c5e7fba8068042b6a4e107faf.zip
FreeBSD-src-0df066f30dddba3c5e7fba8068042b6a4e107faf.tar.gz
Remove unnecessary CURVNET_SET() calls where curvnet context is
(i.e. seems to be) already set. This should reduce console noise due to curvnet recursion reports. This change has no impact on nooptions VIMAGE builds. Approved by: julian (mentor)
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r--sys/netinet/igmp.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 3fb3711..34390a0 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -528,9 +528,6 @@ igmp_ra_alloc(void)
/*
* Attach IGMP when PF_INET is attached to an interface.
- *
- * VIMAGE: Currently we set the vnet pointer, although it is
- * likely that it was already set by our caller.
*/
struct igmp_ifinfo *
igmp_domifattach(struct ifnet *ifp)
@@ -540,7 +537,6 @@ igmp_domifattach(struct ifnet *ifp)
CTR3(KTR_IGMPV3, "%s: called for ifp %p(%s)",
__func__, ifp, ifp->if_xname);
- CURVNET_SET(ifp->if_vnet);
IGMP_LOCK();
igi = igi_alloc_locked(ifp);
@@ -548,7 +544,6 @@ igmp_domifattach(struct ifnet *ifp)
igi->igi_flags |= IGIF_SILENT;
IGMP_UNLOCK();
- CURVNET_RESTORE();
return (igi);
}
@@ -600,9 +595,6 @@ out:
*
* SMPNG: igmp_ifdetach() needs to take IF_ADDR_LOCK().
* XXX This is also bitten by unlocked ifma_protospec access.
- *
- * VIMAGE: curvnet should have been set by caller, but let's not assume
- * that for now.
*/
void
igmp_ifdetach(struct ifnet *ifp)
@@ -614,8 +606,6 @@ igmp_ifdetach(struct ifnet *ifp)
CTR3(KTR_IGMPV3, "%s: called for ifp %p(%s)", __func__, ifp,
ifp->if_xname);
- CURVNET_SET(ifp->if_vnet);
-
IGMP_LOCK();
igi = ((struct in_ifinfo *)ifp->if_afdata[AF_INET])->ii_igmp;
@@ -648,15 +638,10 @@ igmp_ifdetach(struct ifnet *ifp)
}
IGMP_UNLOCK();
-
- CURVNET_RESTORE();
}
/*
* Hook for domifdetach.
- *
- * VIMAGE: curvnet should have been set by caller, but let's not assume
- * that for now.
*/
void
igmp_domifdetach(struct ifnet *ifp)
@@ -666,14 +651,12 @@ igmp_domifdetach(struct ifnet *ifp)
CTR3(KTR_IGMPV3, "%s: called for ifp %p(%s)",
__func__, ifp, ifp->if_xname);
- CURVNET_SET(ifp->if_vnet);
IGMP_LOCK();
igi = ((struct in_ifinfo *)ifp->if_afdata[AF_INET])->ii_igmp;
igi_delete_locked(ifp);
IGMP_UNLOCK();
- CURVNET_RESTORE();
}
static void
OpenPOWER on IntegriCloud