freebsd-dev/sys/dev/cxgb
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
..
common Update firmware version check 2008-11-12 04:45:09 +00:00
sys fix insta-panic: 2008-09-25 06:46:28 +00:00
ulp Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
bin2h.pl Parameterize for module name 2008-02-26 23:12:55 +00:00
cxgb_adapter.h - Remove default NIC dependency on ulp headers 2008-09-24 01:19:08 +00:00
cxgb_config.h Update cxgb include paths to not require prefixing with dev/cxgb 2008-09-23 03:16:54 +00:00
cxgb_include.h - Remove default NIC dependency on ulp headers 2008-09-24 01:19:08 +00:00
cxgb_ioctl.h Import ioctl updates for latest rev of cxgbtool 2008-09-02 07:47:14 +00:00
cxgb_main.c Hide AF_INET specific ioctl handling under #ifdef INET. 2008-11-06 10:17:57 +00:00
cxgb_multiq.c Update cxgb include paths to not require prefixing with dev/cxgb 2008-09-23 03:16:54 +00:00
cxgb_offload.c Update cxgb include paths to not require prefixing with dev/cxgb 2008-09-23 03:16:54 +00:00
cxgb_offload.h - Remove default NIC dependency on ulp headers 2008-09-24 01:19:08 +00:00
cxgb_osdep.h For now our LRO code (tcp_lro.c) only supports IPv4 properly thus 2008-11-06 10:35:46 +00:00
cxgb_sge.c Track number of packets transmitted and number of packets received 2008-10-17 07:04:29 +00:00
cxgb_t3fw.c Update cxgb include paths to not require prefixing with dev/cxgb 2008-09-23 03:16:54 +00:00
cxgb_t3fw.h Move firmware in to separate module that can be compiled statically in to the kernel 2008-02-26 03:02:20 +00:00
t3b_protocol_sram.h move remaining binaries in to blob headers 2008-02-26 23:05:05 +00:00
t3b_tp_eeprom.h move remaining binaries in to blob headers 2008-02-26 23:05:05 +00:00
t3cdev.h MFSVN: 2008-05-05 01:41:53 +00:00