diff options
author | Florin Coras <fcoras@cisco.com> | 2017-11-29 00:07:11 -0500 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-11-29 11:59:46 +0000 |
commit | 93e658058033e251b98d18a1f0717a07a85adfc2 (patch) | |
tree | 469bda92e663851b7925aa60fd8677d38a5e6a86 /src/vnet/session/session.c | |
parent | c6fb36fc2eb43c6158b390918d295f2c8eba737b (diff) |
session: fix preallocation of local endpoint table
Change-Id: I67a73e31bda9e497859297fcc1765e880572884a
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index d995eeb04a5..b1bd7a7f041 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1239,6 +1239,17 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input) tmp, tmp); smm->configured_v6_halfopen_table_memory = tmp; } + else if (unformat (input, "local-endpoints-table-memory %U", + unformat_memory_size, &tmp)) + { + if (tmp >= 0x100000000) + return clib_error_return (0, "memory size %llx (%lld) too large", + tmp, tmp); + smm->local_endpoints_table_memory = tmp; + } + else if (unformat (input, "local-endpoints-table-buckets %d", + &smm->local_endpoints_table_buckets)) + ; else return clib_error_return (0, "unknown input `%U'", format_unformat_error, input); |