tls: do not overwrite config parameters if set 28/36028/2
authorOfer Heifetz <oferh@marvell.com>
Thu, 14 Apr 2022 16:21:19 +0000 (19:21 +0300)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 25 Apr 2022 18:21:38 +0000 (18:21 +0000)
commit3d8bab088e763130a27a17199fce18de4e3a50b2
tree51ee6a9cc7d0ce836fd7c1530bb7c0450686e422
parentd715d0bce8527d0865f2d8efec78bc92d8315c00
tls: do not overwrite config parameters if set

User can define first_seg_size and add-segment-size in the tls
configuration section, but current code does not take this configuration
into account and sets a default value to first_seg_size and add_seg_size
respectively.

This commit checks if configuration was set and only if not uses the
default values.

Type: fix

Signed-off-by: Ofer Heifetz <oferh@marvell.com>
Change-Id: I0077f7d54fe7773dd92522476f882c924fda22df
src/vnet/tls/tls.c