aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/tls/tls.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index 9cf10086a91..6482d5d8047 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -1315,8 +1315,11 @@ tls_init (vlib_main_t * vm)
vec_validate (tm->rx_bufs, num_threads - 1);
vec_validate (tm->tx_bufs, num_threads - 1);
- tm->first_seg_size = 32 << 20;
- tm->add_seg_size = 256 << 20;
+ if (!tm->first_seg_size)
+ tm->first_seg_size = 32 << 20;
+
+ if (!tm->add_seg_size)
+ tm->add_seg_size = 256 << 20;
transport_register_protocol (TRANSPORT_PROTO_TLS, &tls_proto,
FIB_PROTOCOL_IP4, ~0);