From 05a1a5d34353c5f09c25a01b8dc543b06553915d Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Thu, 26 Apr 2018 01:03:05 +0200 Subject: 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 Signed-off-by: Deepak S --- VNFs/DPPD-PROX/handle_tsc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'VNFs/DPPD-PROX/handle_tsc.c') diff --git a/VNFs/DPPD-PROX/handle_tsc.c b/VNFs/DPPD-PROX/handle_tsc.c index e686aaa2..245fe7a2 100644 --- a/VNFs/DPPD-PROX/handle_tsc.c +++ b/VNFs/DPPD-PROX/handle_tsc.c @@ -40,9 +40,8 @@ static struct task_init task_init = { .mode_str = "tsc", .init = NULL, .handle = handle_bulk_tsc, - .flag_features = TASK_FEATURE_NEVER_DISCARDS|TASK_FEATURE_TXQ_FLAGS_NOOFFLOADS|TASK_FEATURE_TXQ_FLAGS_NOMULTSEGS|TASK_FEATURE_THROUGHPUT_OPT, + .flag_features = TASK_FEATURE_NEVER_DISCARDS|TASK_FEATURE_TXQ_FLAGS_NOOFFLOADS|TASK_FEATURE_THROUGHPUT_OPT, .size = sizeof(struct task_tsc), - .mbuf_size = 2048 + sizeof(struct rte_mbuf) + RTE_PKTMBUF_HEADROOM, }; __attribute__((constructor)) static void reg_task_nop(void) -- cgit 1.2.3-korg