Date: Sat, 16 May 2009 14:49:27 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 162162 for review Message-ID: <200905161449.n4GEnR0a018561@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=162162 Change 162162 by zec@zec_tpx32 on 2009/05/16 14:48:26 Reduce churn in struct vnet, thereby the diff against head. Affected files ... .. //depot/projects/vimage-commit2/src/sys/net/vnet.h#18 edit Differences ... ==== //depot/projects/vimage-commit2/src/sys/net/vnet.h#18 (text+ko) ==== @@ -36,29 +36,28 @@ #include <net/if_var.h> struct vnet_net { + int _if_index; + struct ifindex_entry * _ifindex_table; struct ifnethead _ifnet; struct ifgrouphead _ifg_head; - struct ifnet * _loif; - LIST_HEAD(, lo_softc) _lo_list; + int _if_indexlim; + struct knlist _ifklist; + struct rtstat _rtstat; struct radix_node_head *_rt_tables[RT_MAXFIBS][AF_MAX+1]; - struct rtstat _rtstat; int _rttrash; uma_zone_t _rtzone; - struct ifindex_entry * _ifindex_table; - int _if_index; - int _if_indexlim; - struct knlist _ifklist; + struct ifnet * _loif; + LIST_HEAD(, lo_softc) _lo_list; + struct if_clone * _lo_cloner; - struct if_clone * _lo_cloner; + LIST_HEAD(, rawcb) _rawcb_list; LIST_HEAD(, if_clone) _if_cloners; int _if_cloners_count; - LIST_HEAD(, rawcb) _rawcb_list; - int _ether_ipfw; }; @@ -79,22 +78,22 @@ #define VNET_NET(sym) VSYM(vnet_net, sym) -#define V_ether_ipfw VNET_NET(ether_ipfw) -#define V_if_cloners VNET_NET(if_cloners) -#define V_if_cloners_count VNET_NET(if_cloners_count) -#define V_if_index VNET_NET(if_index) -#define V_if_indexlim VNET_NET(if_indexlim) -#define V_ifg_head VNET_NET(ifg_head) -#define V_ifindex_table VNET_NET(ifindex_table) -#define V_ifklist VNET_NET(ifklist) -#define V_ifnet VNET_NET(ifnet) -#define V_lo_list VNET_NET(lo_list) -#define V_lo_cloner VNET_NET(lo_cloner) -#define V_loif VNET_NET(loif) -#define V_rawcb_list VNET_NET(rawcb_list) -#define V_rt_tables VNET_NET(rt_tables) -#define V_rtstat VNET_NET(rtstat) -#define V_rttrash VNET_NET(rttrash) -#define V_rtzone VNET_NET(rtzone) +#define V_ether_ipfw VNET_NET(ether_ipfw) +#define V_if_index VNET_NET(if_index) +#define V_if_indexlim VNET_NET(if_indexlim) +#define V_if_cloners VNET_NET(if_cloners) +#define V_if_cloners_count VNET_NET(if_cloners_count) +#define V_ifg_head VNET_NET(ifg_head) +#define V_ifindex_table VNET_NET(ifindex_table) +#define V_ifklist VNET_NET(ifklist) +#define V_ifnet VNET_NET(ifnet) +#define V_lo_cloner VNET_NET(lo_cloner) +#define V_lo_list VNET_NET(lo_list) +#define V_loif VNET_NET(loif) +#define V_rawcb_list VNET_NET(rawcb_list) +#define V_rt_tables VNET_NET(rt_tables) +#define V_rtstat VNET_NET(rtstat) +#define V_rttrash VNET_NET(rttrash) +#define V_rtzone VNET_NET(rtzone) #endif /* !_NET_VNET_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905161449.n4GEnR0a018561>