From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B58EA04DB; Fri, 16 Oct 2020 17:42:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0AEF61D9CE; Fri, 16 Oct 2020 17:42:22 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 774A51D9BC for ; Fri, 16 Oct 2020 17:42:20 +0200 (CEST) IronPort-SDR: d8ZF9YvlORcUR01vNcFVb6VyCeSoIcd84+ep47udFDFvi80G1yo4fSHVmO3m83dDZDtBy+WiZ+ 8qw4HIx4K6Eg== X-IronPort-AV: E=McAfee;i="6000,8403,9776"; a="228276342" X-IronPort-AV: E=Sophos;i="5.77,383,1596524400"; d="scan'208";a="228276342" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 08:42:18 -0700 IronPort-SDR: Yh7+dlf92pdOQXck12YLDWWIq1tWKXWzFIhVsMQnygW+WwUfwpz/K2NR80mEn82IpvZ5baorV0 6LTpTKCvhF4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,383,1596524400"; d="scan'208";a="319487028" Received: from silpixa00400072.ir.intel.com ([10.237.222.213]) by orsmga006.jf.intel.com with ESMTP; 16 Oct 2020 08:42:16 -0700 From: Vladimir Medvedkin To: dev@dpdk.org Cc: david.marchand@redhat.com, jerinj@marvell.com, mdr@ashroe.eu, thomas@monjalon.net, konstantin.ananyev@intel.com, bruce.richardson@intel.com, ciara.power@intel.com Date: Fri, 16 Oct 2020 16:42:07 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v11 0/8] fib: implement AVX512 vector lookup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch series implements vectorized lookup using AVX512 for ipv4 dir24_8 and ipv6 trie algorithms. Also introduced rte_fib_set_lookup_fn() to change lookup function type. Added option to select lookup function type in testfib application. Depends-on: patch-81125 ("eal: add max SIMD bitwidth") v11: - fix compillation issue with unused nh_sz variable v10: - reflects the latest changes in the "eal: add max SIMD bitwidth" patch - add en extra doxygen comments - rebuild on the latest main v9: - meson reworked - integration with max SIMD bitwidth patchseries - changed the logic of function selection on init v8: - remove Makefile related changes - fix missing doxygen for lookup_type - add release notes v7: - fix RTE_X86_ZMM_MASK macro v6: - style fixes v5: - prefix zmm macro in rte_vect.h with RTE_X86 - remove unnecessary typedef for _x86_zmm_t - reword commit title - fix typos v4: - use __rte_aligned() instead of using compiler attribute directly - rework and add comments to meson.build v3: - separate out the AVX-512 code into a separate file v2: - rename rte_zmm to __rte_x86_zmm to reflect its internal usage - make runtime decision to use avx512 lookup Vladimir Medvedkin (8): eal/x86: introduce AVX 512-bit type fib: make lookup function type configurable fib: move lookup definition into the header file fib: introduce AVX512 lookup fib6: make lookup function type configurable fib6: move lookup definition into the header file fib6: introduce AVX512 lookup app/testfib: add support for different lookup functions app/test-fib/main.c | 65 ++++++- doc/guides/rel_notes/release_20_11.rst | 3 + lib/librte_eal/x86/include/rte_vect.h | 19 ++ lib/librte_fib/dir24_8.c | 331 +++++++++------------------------ lib/librte_fib/dir24_8.h | 226 +++++++++++++++++++++- lib/librte_fib/dir24_8_avx512.c | 165 ++++++++++++++++ lib/librte_fib/dir24_8_avx512.h | 24 +++ lib/librte_fib/meson.build | 51 +++++ lib/librte_fib/rte_fib.c | 21 ++- lib/librte_fib/rte_fib.h | 36 ++++ lib/librte_fib/rte_fib6.c | 20 +- lib/librte_fib/rte_fib6.h | 26 +++ lib/librte_fib/rte_fib_version.map | 2 + lib/librte_fib/trie.c | 193 ++++++------------- lib/librte_fib/trie.h | 119 +++++++++++- lib/librte_fib/trie_avx512.c | 269 +++++++++++++++++++++++++++ lib/librte_fib/trie_avx512.h | 20 ++ 17 files changed, 1200 insertions(+), 390 deletions(-) create mode 100644 lib/librte_fib/dir24_8_avx512.c create mode 100644 lib/librte_fib/dir24_8_avx512.h create mode 100644 lib/librte_fib/trie_avx512.c create mode 100644 lib/librte_fib/trie_avx512.h -- 2.7.4