Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_hostcache.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | struct hc_metrics { | ||||
uint32_t rmx_recvpipe; /* inbound delay-bandwidth product */ | uint32_t rmx_recvpipe; /* inbound delay-bandwidth product */ | ||||
/* TCP hostcache internal data */ | /* TCP hostcache internal data */ | ||||
int rmx_expire; /* lifetime for object */ | int rmx_expire; /* lifetime for object */ | ||||
u_long rmx_hits; /* number of hits */ | u_long rmx_hits; /* number of hits */ | ||||
u_long rmx_updates; /* number of updates */ | u_long rmx_updates; /* number of updates */ | ||||
}; | }; | ||||
struct tcp_hostcache { | struct tcp_hostcache { | ||||
struct hc_head *hashbase; | struct hc_head *hashbase; | ||||
uma_zone_t zone; | uma_zone_t zone; | ||||
u_int hashsize; | u_int hashsize; | ||||
u_int hashmask; | u_int hashmask; | ||||
u_int bucket_limit; | u_int bucket_limit; | ||||
u_int cache_count; | counter_u64_t cache_count; | ||||
u_int cache_limit; | u_int cache_limit; | ||||
int expire; | int expire; | ||||
int prune; | int prune; | ||||
int purgeall; | int purgeall; | ||||
}; | }; | ||||
#endif /* !_NETINET_TCP_HOSTCACHE_H_*/ | #endif /* !_NETINET_TCP_HOSTCACHE_H_*/ |