1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
freebsd/sys/net
Marko Zec 44e33a0758 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
2008-11-19 09:39:34 +00:00
..
bpf_buffer.c
bpf_buffer.h
bpf_filter.c Fix the last missing parentheses for a return statement in bpf_filter.c. 2008-08-29 20:00:55 +00:00
bpf_jitter.c Initialize scratch memory for JIT-compiled filter when it is allocated. 2008-08-28 16:40:51 +00:00
bpf_jitter.h Fix a typo in copyrights. 2008-08-25 20:43:13 +00:00
bpf_zerocopy.c
bpf_zerocopy.h
bpf.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
bpf.h Revert the previous commit to fix buildworld for now. 2008-08-26 16:12:49 +00:00
bpfdesc.h
bridgestp.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
bridgestp.h
bsd_comp.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
ethernet.h Move CTASSERT of ether header sizes out of the header file and into 2008-08-27 17:10:37 +00:00
fddi.h
firewire.h
ieee8023ad_lacp.c
ieee8023ad_lacp.h
if_arc.h
if_arcsubr.c Make compile without INET. 2008-11-05 11:43:01 +00:00
if_arp.h
if_atm.h
if_atmsubr.c Revert a part of the MRT commit that proved un-needed. 2008-09-14 08:19:48 +00:00
if_bridge.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_bridgevar.h
if_clone.c Fix clone destruction, can't use the simple api because that does not remove 2008-09-20 19:38:37 +00:00
if_clone.h Fix clone destruction, can't use the simple api because that does not remove 2008-09-20 19:38:37 +00:00
if_disc.c
if_dl.h
if_edsc.c
if_ef.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_enc.c
if_enc.h
if_ethersubr.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
if_faith.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_fddisubr.c Hide an unused variable in case we compile without INET. 2008-11-06 09:07:56 +00:00
if_fwsubr.c Check for INET not AF_INET in #ifdef. Makes it compile without INET. 2008-11-06 09:27:47 +00:00
if_gif.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
if_gif.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_gre.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_gre.h
if_iso88025subr.c Hide an unused variable in case we compile without INET. 2008-11-06 09:18:29 +00:00
if_lagg.c Do not mangle if_oerrors of the underlying interface. This counter 2008-09-30 14:18:38 +00:00
if_lagg.h
if_llc.h
if_loop.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
if_media.c
if_media.h
if_mib.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_mib.h
if_ppp.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
if_ppp.h
if_pppvar.h
if_sl.c Fix a number of style issues in the MALLOC / FREE commit. I've tried to 2008-10-23 20:26:15 +00:00
if_slvar.h
if_sppp.h
if_spppfr.c
if_spppsubr.c Make compile without INET. 2008-11-05 12:02:25 +00:00
if_stf.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_stf.h
if_tap.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
if_tap.h Add new TAPGIFNAME tap(4) character device ioctl. This is a 2008-09-08 22:43:55 +00:00
if_tapvar.h
if_tun.c Make tun(4) compile without INET. 2008-11-05 11:39:46 +00:00
if_tun.h
if_types.h
if_var.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if_vlan_var.h
if_vlan.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
if.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
if.h Fix to bug kern/126850. Only dispatch event hander if the 2008-08-28 22:05:19 +00:00
iso88025.h
netisr.c
netisr.h
pfil.c
pfil.h
pfkeyv2.h
ppp_comp.h
ppp_deflate.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
ppp_defs.h
ppp_tty.c
radix_mpath.c - Use RTFREE_LOCKED macro 2008-11-11 09:40:27 +00:00
radix_mpath.h
radix.c
radix.h
raw_cb.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
raw_cb.h
raw_usrreq.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
route.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
route.h Move #defines for MRT-related constants from net/route.c to 2008-09-20 09:09:25 +00:00
rtsock.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
slcompress.c
slcompress.h
slip.h
vnet.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
zlib.c
zlib.h