Date: Wed, 19 Nov 2008 09:39:34 +0000 (UTC) From: Marko Zec <zec@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/cxgb/ulp/tom cxgb_cpl_io.c src/sys/net if.c if_ethersubr.c if_gif.c if_loop.c raw_cb.c route.c src/sys/netinet if_ether.c igmp.c in.c in_gif.c in_mcast.c in_pcb.c in_pcb.h in_proto.c in_rmx.c in_var.h ip_divert.c ... Message-ID: <200811190941.mAJ9fAwr074950@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
zec 2008-11-19 09:39:34 UTC FreeBSD src repository Modified files: sys/dev/cxgb/ulp/tom cxgb_cpl_io.c sys/net if.c if_ethersubr.c if_gif.c if_loop.c raw_cb.c route.c sys/netinet if_ether.c igmp.c in.c in_gif.c in_mcast.c in_pcb.c in_pcb.h in_proto.c in_rmx.c in_var.h ip_divert.c ip_fastfwd.c ip_icmp.c ip_icmp.h ip_input.c ip_output.c raw_ip.c tcp_hostcache.c tcp_input.c tcp_output.c tcp_reass.c tcp_sack.c tcp_subr.c tcp_syncache.c tcp_timewait.c tcp_var.h udp_usrreq.c vinet.h sys/netinet6 frag6.c icmp6.c in6_ifattach.c in6_proto.c in6_rmx.c in6_src.c ip6_forward.c ip6_input.c ip6_mroute.c mld6.c nd6.c nd6_nbr.c nd6_rtr.c raw_ip6.c scope6.c vinet6.h sys/netipsec ipsec.c ipsec.h key.c keysock.c xform_ah.c xform_esp.c xform_ipcomp.c xform_ipip.c sys/sys vimage.h Log: SVN rev 185088 on 2008-11-19 09:39:34Z by zec Change the initialization methodology for global variables scheduled for virtualization. Instead of initializing the affected global variables at instatiation, assign initial values to them in initializer functions. As a rule, initialization at instatiation for such variables should never be introduced again from now on. Furthermore, enclose all instantiations of such global variables in #ifdef VIMAGE_GLOBALS blocks. Essentialy, this change should have zero functional impact. In the next phase of merging network stack virtualization infrastructure from p4/vimage branch, the new initialization methology will allow us to switch between using global variables and their counterparts residing in virtualization containers with minimum code churn, and in the long run allow us to intialize multiple instances of such container structures. Discussed at: devsummit Strassburg Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation Revision Changes Path 1.27 +0 -5 src/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c 1.291 +13 -10 src/sys/net/if.c 1.251 +2 -0 src/sys/net/if_ethersubr.c 1.73 +22 -10 src/sys/net/if_gif.c 1.121 +4 -1 src/sys/net/if_loop.c 1.42 +2 -0 src/sys/net/raw_cb.c 1.141 +2 -0 src/sys/net/route.c 1.181 +12 -5 src/sys/netinet/if_ether.c 1.60 +5 -1 src/sys/netinet/igmp.c 1.108 +7 -5 src/sys/netinet/in.c 1.42 +3 -1 src/sys/netinet/in_gif.c 1.10 +2 -0 src/sys/netinet/in_mcast.c 1.224 +14 -12 src/sys/netinet/in_pcb.c 1.118 +2 -0 src/sys/netinet/in_pcb.h 1.89 +1 -0 src/sys/netinet/in_proto.c 1.63 +14 -4 src/sys/netinet/in_rmx.c 1.65 +9 -0 src/sys/netinet/in_var.h 1.138 +2 -0 src/sys/netinet/ip_divert.c 1.45 +3 -1 src/sys/netinet/ip_fastfwd.c 1.127 +30 -11 src/sys/netinet/ip_icmp.c 1.27 +1 -0 src/sys/netinet/ip_icmp.h 1.345 +52 -28 src/sys/netinet/ip_input.c 1.288 +2 -0 src/sys/netinet/ip_output.c 1.198 +4 -0 src/sys/netinet/raw_ip.c 1.24 +3 -1 src/sys/netinet/tcp_hostcache.c 1.391 +17 -12 src/sys/netinet/tcp_input.c 1.157 +11 -8 src/sys/netinet/tcp_output.c 1.357 +12 -4 src/sys/netinet/tcp_reass.c 1.45 +7 -4 src/sys/netinet/tcp_sack.c 1.322 +58 -12 src/sys/netinet/tcp_subr.c 1.161 +11 -5 src/sys/netinet/tcp_syncache.c 1.292 +3 -1 src/sys/netinet/tcp_timewait.c 1.166 +19 -0 src/sys/netinet/tcp_var.h 1.241 +9 -2 src/sys/netinet/udp_usrreq.c 1.2 +2 -0 src/sys/netinet/vinet.h 1.40 +2 -0 src/sys/netinet6/frag6.c 1.93 +8 -5 src/sys/netinet6/icmp6.c 1.48 +4 -8 src/sys/netinet6/in6_ifattach.c 1.53 +32 -49 src/sys/netinet6/in6_proto.c 1.27 +16 -7 src/sys/netinet6/in6_rmx.c 1.59 +8 -2 src/sys/netinet6/in6_src.c 1.45 +2 -0 src/sys/netinet6/ip6_forward.c 1.105 +83 -4 src/sys/netinet6/ip6_input.c 1.51 +20 -1 src/sys/netinet6/ip6_mroute.c 1.38 +2 -0 src/sys/netinet6/mld6.c 1.93 +53 -18 src/sys/netinet6/nd6.c 1.55 +7 -3 src/sys/netinet6/nd6_nbr.c 1.44 +6 -10 src/sys/netinet6/nd6_rtr.c 1.89 +2 -0 src/sys/netinet6/raw_ip6.c 1.21 +9 -5 src/sys/netinet6/scope6.c 1.2 +2 -0 src/sys/netinet6/vinet6.h 1.33 +57 -22 src/sys/netipsec/ipsec.c 1.20 +1 -0 src/sys/netipsec/ipsec.h 1.37 +40 -20 src/sys/netipsec/key.c 1.25 +6 -2 src/sys/netipsec/keysock.c 1.20 +8 -2 src/sys/netipsec/xform_ah.c 1.24 +6 -3 src/sys/netipsec/xform_esp.c 1.15 +5 -1 src/sys/netipsec/xform_ipcomp.c 1.20 +6 -1 src/sys/netipsec/xform_ipip.c 1.6 +2 -0 src/sys/sys/vimage.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811190941.mAJ9fAwr074950>