Increase default mbuf size and code simplification/cleanup 69/57869/1
authorXavier Simonart <xavier.simonart@intel.com>
Wed, 25 Apr 2018 23:03:05 +0000 (01:03 +0200)
committerDeepak S <deepak.s@linux.intel.com>
Fri, 25 May 2018 09:19:18 +0000 (14:49 +0530)
commit6f90cc27941ae39d2e0ea87ad44c476287d8014a
tree843f7746279c443acde5bc4889ac8756dcf925a1
parent59bcd684dd98b57744c1ca56c4e2b7b0c8bc9ad2
Increase default mbuf size and code simplification/cleanup

mbuf size was setup to achieve the best performance i.e.
using the smallest mbuf and not segmenting packets.
However this resulted in complex code, much dependent of the way
the pmd are working e.g. a change(fix) in recent dpdk i40e
implementation caused a 1782 (=1518+8+256) bytes mbuf to be too
small to hold a 1518 bytes packets.
Hence this change simplifies the mbuf size selection at the price
of a potential decreases in performance - as more memory is now used.
Except if jumbo frames are used, the mbuf size will now be the same
for all modes. The packets will not be segmented except if jumbo
frames are enabled.
If jumbo frames are enabled, packets are by default segmented, except
if the mbuf size is configured big enough in the config file.

Change-Id: I222fcac7a65c0d221d5d422f419deb9c0f864172
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
18 files changed:
VNFs/DPPD-PROX/defaults.c
VNFs/DPPD-PROX/defaults.h
VNFs/DPPD-PROX/handle_cgnat.c
VNFs/DPPD-PROX/handle_esp.c
VNFs/DPPD-PROX/handle_gen.c
VNFs/DPPD-PROX/handle_genl4.c
VNFs/DPPD-PROX/handle_l2fwd.c
VNFs/DPPD-PROX/handle_mirror.c
VNFs/DPPD-PROX/handle_nat.c
VNFs/DPPD-PROX/handle_nop.c
VNFs/DPPD-PROX/handle_swap.c
VNFs/DPPD-PROX/handle_tsc.c
VNFs/DPPD-PROX/main.c
VNFs/DPPD-PROX/prox_args.c
VNFs/DPPD-PROX/prox_port_cfg.c
VNFs/DPPD-PROX/prox_port_cfg.h
VNFs/DPPD-PROX/task_base.h
VNFs/DPPD-PROX/task_init.h