From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Ananyev Subject: [PATCH 0/2] L3FWD sample optimisation Date: Thu, 22 May 2014 17:55:40 +0100 Message-ID: <1400777742-498-1-git-send-email-konstantin.ananyev@intel.com> Return-path: To: dev-VfR2kkLFssw@public.gmane.org To: dev-VfR2kkLFssw@public.gmane.org List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" With latest HW and optimised RX/TX path there is a huge gap between tespmd iofwd and l3fwd performance results. So there is an attempt to optimise l3fwd LPM code path and reduce the gap: - Instead of processing each input packet up to completion - divide packet processing into several stages and perform stage by stage for the whole burst. - Unroll things by the factor of 4 whenever possible. - Use SSE instincts for some operations (bswap, replace MAC addresses, etc). - Avoid TX packet buffering whenever possible. - Move some checks from RX/TX into setup phase. app/test/test_lpm.c | 70 ++++ examples/l3fwd/main.c | 467 +++++++++++++++++++++- lib/librte_eal/common/Makefile | 1 + lib/librte_eal/common/include/rte_common_vect.h | 93 +++++ lib/librte_lpm/rte_lpm.h | 117 ++++++ 5 files changed, 726 insertions(+), 22 deletions(-) create mode 100644 lib/librte_eal/common/include/rte_common_vect.h -- 1.7.7.6