1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00
freebsd/sys/netinet
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
..
libalias Improve the entropy of the source port randomization for network address 2008-08-30 20:58:34 +00:00
accf_data.c
accf_dns.c
accf_http.c
icmp6.h
icmp_var.h
if_atm.c
if_atm.h
if_ether.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
if_ether.h
igmp_var.h
igmp.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
igmp.h
in_cksum.c
in_gif.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in_gif.h
in_mcast.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in_pcb.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in_pcb.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in_proto.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in_rmx.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in_systm.h
in_var.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip6.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip_carp.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
ip_carp.h
ip_divert.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip_divert.h
ip_dummynet.c
ip_dummynet.h Type of q_time (start of queue idle time) has changed: uint32_t -> uint64_t. 2008-10-28 14:14:57 +00:00
ip_ecn.c
ip_ecn.h
ip_encap.c
ip_encap.h
ip_fastfwd.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip_fw2.c For consistency work on the local object passed into the function for the 2008-11-09 14:06:44 +00:00
ip_fw_nat.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip_fw_pfil.c Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
ip_fw.h Fix content and spelling of comment on _ipfw_insn.len -- a count of 2008-10-10 14:33:47 +00:00
ip_gre.c
ip_gre.h
ip_icmp.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip_icmp.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip_id.c
ip_input.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip_ipsec.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip_ipsec.h
ip_mroute.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip_mroute.h
ip_options.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip_options.h
ip_output.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip_var.h Another V_ forgotten 2008-08-25 05:49:16 +00:00
ip.h Move CTASSERT from header file to source file, per implementation note now 2008-09-26 18:30:11 +00:00
ipprotosw.h
pim_var.h
pim.h
raw_ip.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
sctp_asconf.c - Out with some printfs. 2008-07-29 09:06:35 +00:00
sctp_asconf.h
sctp_auth.c
sctp_auth.h
sctp_bsd_addr.c Nit 2008-08-09 11:28:57 +00:00
sctp_bsd_addr.h
sctp_cc_functions.c
sctp_cc_functions.h
sctp_constants.h -Improvement: Add '\n' on debug output in sctp_lower_sosend(). 2008-11-12 14:16:39 +00:00
sctp_crc32.c Reported by Yehuda Weinraub (yehudasa@gamil.com) - CRC32C algorithm 2008-10-18 15:53:31 +00:00
sctp_crc32.h
sctp_header.h
sctp_indata.c -Improvement: Add '\n' on debug output in sctp_lower_sosend(). 2008-11-12 14:16:39 +00:00
sctp_indata.h
sctp_input.c -Improvement: Add '\n' on debug output in sctp_lower_sosend(). 2008-11-12 14:16:39 +00:00
sctp_input.h
sctp_lock_bsd.h - Make strict-sacks be the default. 2008-08-28 09:44:07 +00:00
sctp_os_bsd.h Get rid of ifdef for vimage on version 8 comparison. Now the 2008-10-27 13:54:54 +00:00
sctp_os.h
sctp_output.c More issues with pre-blocking: 2008-10-27 14:49:12 +00:00
sctp_output.h
sctp_pcb.c -Improvement: Add '\n' on debug output in sctp_lower_sosend(). 2008-11-12 14:16:39 +00:00
sctp_pcb.h -Improvement: Add '\n' on debug output in sctp_lower_sosend(). 2008-11-12 14:16:39 +00:00
sctp_peeloff.c
sctp_peeloff.h
sctp_structs.h
sctp_sysctl.c - Peers rwnd is now available for the MIB. 2008-10-18 15:55:15 +00:00
sctp_sysctl.h - Make strict-sacks be the default. 2008-08-28 09:44:07 +00:00
sctp_timer.c Invariants changes that make more sense. 2008-10-27 13:53:31 +00:00
sctp_timer.h Invariants changes that make more sense. 2008-10-27 13:53:31 +00:00
sctp_uio.h - Peers rwnd is now available for the MIB. 2008-10-18 15:55:15 +00:00
sctp_usrreq.c New sockets (accepted) were not inheriting the proper snd/rcv buffer value. 2008-10-18 15:56:12 +00:00
sctp_var.h - Make strict-sacks be the default. 2008-08-28 09:44:07 +00:00
sctp.h Adds support for the SCTP_PORT_REUSE option 2008-07-31 11:08:30 +00:00
sctputil.c -Improvement: Add '\n' on debug output in sctp_lower_sosend(). 2008-11-12 14:16:39 +00:00
sctputil.h
tcp_debug.c To my reading there are no real consumers of ip6_plen (IPv6 2008-09-07 20:44:45 +00:00
tcp_debug.h
tcp_fsm.h
tcp_hostcache.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_input.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_lro.c Don't calculate checksum if it has already been validated 2008-08-24 02:31:09 +00:00
tcp_lro.h
tcp_offload.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
tcp_offload.h
tcp_output.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_reass.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_sack.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_seq.h
tcp_subr.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_syncache.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_syncache.h Move some struct defs around. This is a prep step for Vimage.A 2008-08-25 00:33:30 +00:00
tcp_timer.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
tcp_timer.h
tcp_timewait.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp_usrreq.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
tcp_var.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
tcp.h
tcpip.h
toedev.h Don't check if an interface can do tcp offload if there are no offload devices registered on the system. 2008-09-01 05:30:22 +00:00
udp_usrreq.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
udp_var.h
udp.h
vinet.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00