File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,10 @@ typedef struct tc_sess_s tc_sess_t;
81
81
#define TC_UPOOL_MAXV 511
82
82
#define TC_DEFAULT_POOL_SIZE (16 * 1024)
83
83
#define TC_DEFAULT_UPOOL_SIZE 1024
84
- #define TC_DEFAULT_LR_POOL_SIZE (4 *1024 * 1024)
85
- #define TC_PLUGIN_POOL_SIZE TC_DEFAULT_LR_POOL_SIZE
84
+ #define TC_LR_POOL_SIZE (4 *1024 * 1024)
85
+ #define TC_LR_POOL_SUB_SIZE (64 *1024)
86
+ #define TC_PLUGIN_POOL_SIZE TC_LR_POOL_SIZE
87
+ #define TC_PLUGIN_POOL_SUB_SIZE TC_LR_POOL_SUB_SIZE
86
88
87
89
#define MEM_HID_INFO_SZ sizeof(tc_mem_hid_info_t)
88
90
#define TC_POOL_ALIGNMENT 16
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ fill_pro_common_header(tc_iph_t *ip, tc_tcph_t *tcp)
198
198
int
199
199
tc_init_sess_table (void )
200
200
{
201
- tc_pool_t * pool = tc_create_pool (TC_DEFAULT_LR_POOL_SIZE , 0 , 0 );
201
+ tc_pool_t * pool = tc_create_pool (TC_LR_POOL_SIZE , TC_LR_POOL_SUB_SIZE , 0 );
202
202
if (pool != NULL ) {
203
203
sess_table = hash_create (pool , 65536 );
204
204
if (sess_table != NULL ) {
You can’t perform that action at this time.
0 commit comments