examples/ipsec-secgw: make number of buffers dynamic
authorLukasz Bartosik <lbartosik@marvell.com>
Thu, 27 Feb 2020 16:18:35 +0000 (17:18 +0100)
committerAkhil Goyal <akhil.goyal@oss.nxp.com>
Sun, 5 Apr 2020 16:26:04 +0000 (18:26 +0200)
commit7338a34e01a824afe9e4fedfbb6c45cc3dad41ba
treeb8779cbbbd877646b29432e8872eb2a620a485cb
parent9ad50c29d01d0d3e7a1f420178d795a92ca4b682
examples/ipsec-secgw: make number of buffers dynamic

Make number of buffers in a pool nb_mbuf_in_pool dependent on number
of ports, cores and crypto queues. Add command line option -s which
when used overrides dynamic calculation of number of buffers in a pool.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
examples/ipsec-secgw/ipsec-secgw.c