Date: Thu, 15 May 2008 07:33:28 GMT From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 141634 for review Message-ID: <200805150733.m4F7XSHI019951@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=141634 Change 141634 by julian@julian_trafmon1 on 2008/05/15 07:32:32 still wrong, bit need to sleep Affected files ... .. //depot/projects/vimage/src/sys/netinet/in_rmx.c#11 edit Differences ... ==== //depot/projects/vimage/src/sys/netinet/in_rmx.c#11 (text+ko) ==== @@ -281,23 +281,24 @@ CURVNET_SET_QUIET((struct vnet *) rock); INIT_VNET_NET((struct vnet *) rock); INIT_VNET_INET((struct vnet *) rock); - struct radix_node_head *rnh = V_rt_tables[AF_INET]; struct timeval atv; KASSERT((rock == (void *)rt_tables[0][AF_INET]), ("in_rtqtimo: unexpected arg")); for (fibnum = 0; fibnum < rt_numfibs; fibnum++) { - if ((newrock = rt_tables[fibnum][AF_INET]) != NULL) + if ((newrock = V_rt_tables[fibnum][AF_INET]) != NULL) in_rtqtimo_one(newrock); } atv.tv_usec = 0; atv.tv_sec = V_rtq_timeout; callout_reset(&V_rtq_timer, tvtohz(&atv), in_rtqtimo, rock); + CURVNET_RESTORE(); } static void -in_rtqtimo_one(void *rock) +in_rtqtimo_one(void *rnh) { + INIT_VNET_NET(curvnet); struct rtqk_arg arg; static time_t last_adjusted_timeout = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805150733.m4F7XSHI019951>