Date: Thu, 7 Dec 2006 17:05:36 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 111253 for review Message-ID: <200612071705.kB7H5a90015086@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111253 Change 111253 by zec@zec_tca51 on 2006/12/07 17:05:07 Move some #defines for constant from tcp_hostcache.h back to .c. Given that netinet/vinet.h now includes tcp_hostcache.h, it wouldn't be desirable for tweaking those constants to require the entire INET part of the stack to be recompiled. Affected files ... .. //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#5 edit .. //depot/projects/vimage/src/sys/netinet/tcp_hostcache.h#2 edit Differences ... ==== //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#5 (text+ko) ==== @@ -97,6 +97,11 @@ #include <vm/uma.h> +/* Arbitrary values */ +#define TCP_HOSTCACHE_HASHSIZE 512 +#define TCP_HOSTCACHE_BUCKETLIMIT 30 +#define TCP_HOSTCACHE_EXPIRE 60*60 /* one hour */ +#define TCP_HOSTCACHE_PRUNE 5*60 /* every 5 minutes */ #ifndef VIMAGE static struct tcp_hostcache tcp_hostcache; ==== //depot/projects/vimage/src/sys/netinet/tcp_hostcache.h#2 (text+ko) ==== @@ -66,12 +66,6 @@ u_long rmx_updates; /* number of updates */ }; -/* Arbitrary values */ -#define TCP_HOSTCACHE_HASHSIZE 512 -#define TCP_HOSTCACHE_BUCKETLIMIT 30 -#define TCP_HOSTCACHE_EXPIRE 60*60 /* one hour */ -#define TCP_HOSTCACHE_PRUNE 5*60 /* every 5 minutes */ - struct tcp_hostcache { struct hc_head *hashbase; uma_zone_t zone;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612071705.kB7H5a90015086>