diff options
author | 2018-04-26 01:03:05 +0200 | |
---|---|---|
committer | 2018-05-25 14:35:41 +0530 | |
commit | 05a1a5d34353c5f09c25a01b8dc543b06553915d (patch) | |
tree | 843f7746279c443acde5bc4889ac8756dcf925a1 /VNFs/DPPD-PROX/handle_l2fwd.c | |
parent | 9a2cd90e15a77f5ae739ee74a0336b2c03392f57 (diff) |
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>
Diffstat (limited to 'VNFs/DPPD-PROX/handle_l2fwd.c')
-rw-r--r-- | VNFs/DPPD-PROX/handle_l2fwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/handle_l2fwd.c b/VNFs/DPPD-PROX/handle_l2fwd.c index faebe6fb..e5a8c338 100644 --- a/VNFs/DPPD-PROX/handle_l2fwd.c +++ b/VNFs/DPPD-PROX/handle_l2fwd.c @@ -112,9 +112,8 @@ static struct task_init task_init_l2fwd = { .mode_str = "l2fwd", .init = init_task_l2fwd, .handle = handle_l2fwd_bulk, - .flag_features = TASK_FEATURE_NEVER_DISCARDS|TASK_FEATURE_TXQ_FLAGS_NOOFFLOADS|TASK_FEATURE_TXQ_FLAGS_NOMULTSEGS, + .flag_features = TASK_FEATURE_NEVER_DISCARDS|TASK_FEATURE_TXQ_FLAGS_NOOFFLOADS, .size = sizeof(struct task_l2fwd), - .mbuf_size = 2048 + sizeof(struct rte_mbuf) + RTE_PKTMBUF_HEADROOM, }; __attribute__((constructor)) static void reg_task_l2fwd(void) |