PERFORCE change 111253 for review
Marko Zec
zec at FreeBSD.org
Thu Dec 7 09:07:25 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=111253
Change 111253 by zec at 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;
More information about the p4-projects
mailing list