PERFORCE change 114451 for review

Marko Zec zec at FreeBSD.org
Tue Feb 13 13:42:06 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=114451

Change 114451 by zec at zec_tca51 on 2007/02/13 13:41:31

	Iterate through all vnets in tcp_drain() and in_rtqdrain().

Affected files ...

.. //depot/projects/vimage/src/sys/netinet/igmp.c#7 edit
.. //depot/projects/vimage/src/sys/netinet/in_rmx.c#4 edit
.. //depot/projects/vimage/src/sys/netinet/ip_input.c#8 edit
.. //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#8 edit
.. //depot/projects/vimage/src/sys/netinet/tcp_subr.c#10 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet/igmp.c#7 (text+ko) ====

@@ -464,7 +464,7 @@
 	IGMP_PRINTF("[igmp.c,_slowtimo] -- > entering \n");
 	mtx_lock(&igmp_mtx);
 	VNETB_ITERLOOP_BEGIN()
-	INIT_VNET_INET(curvnetb);
+	INIT_VNET_INET(vnetb_iter);
 	SLIST_FOREACH(rti, &V_router_info_head, rti_list) {
 		if (rti->rti_type == IGMP_V1_ROUTER) {
 			rti->rti_time++;

==== //depot/projects/vimage/src/sys/netinet/in_rmx.c#4 (text+ko) ====

@@ -319,7 +319,8 @@
 void
 in_rtqdrain(void)
 {
-	INIT_VNET_NET(curvnetb);
+	VNETB_ITERLOOP_BEGIN();
+	INIT_VNET_NET(vnetb_iter);
 	struct radix_node_head *rnh = V_rt_tables[AF_INET];
 	struct rtqk_arg arg;
 
@@ -331,6 +332,7 @@
 	RADIX_NODE_HEAD_LOCK(rnh);
 	rnh->rnh_walktree(rnh, in_rtqkill, &arg);
 	RADIX_NODE_HEAD_UNLOCK(rnh);
+	VNETB_ITERLOOP_END();
 }
 
 /*

==== //depot/projects/vimage/src/sys/netinet/ip_input.c#8 (text+ko) ====


==== //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#8 (text+ko) ====

@@ -635,7 +635,7 @@
 	int i;
 
 	VNETB_ITERLOOP_BEGIN()
-	INIT_VNET_INET(curvnetb);
+	INIT_VNET_INET(vnetb_iter);
 	if (V_tcp_hostcache.purgeall) {
 		all = 1;
 		V_tcp_hostcache.purgeall = 0;

==== //depot/projects/vimage/src/sys/netinet/tcp_subr.c#10 (text+ko) ====

@@ -887,7 +887,8 @@
 void
 tcp_drain(void)
 {
-	INIT_VNET_INET(curvnetb);
+	VNETB_ITERLOOP_BEGIN();
+	INIT_VNET_INET(vnetb_iter);
 
 	if (do_tcpdrain) {
 		struct inpcb *inpb;
@@ -922,6 +923,8 @@
 		}
 		INP_INFO_RUNLOCK(&V_tcbinfo);
 	}
+
+	VNETB_ITERLOOP_END();
 }
 
 /*


More information about the p4-projects mailing list