Date: Tue, 13 Feb 2007 13:42:04 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 114451 for review Message-ID: <200702131342.l1DDg4bu030984@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114451 Change 114451 by zec@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(); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702131342.l1DDg4bu030984>