From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3D3EA0C55; Mon, 6 Sep 2021 18:04:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B888410F0; Mon, 6 Sep 2021 18:04:06 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id D1931410ED for ; Mon, 6 Sep 2021 18:04:04 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10099"; a="281011515" X-IronPort-AV: E=Sophos;i="5.85,272,1624345200"; d="scan'208";a="281011515" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2021 09:04:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,272,1624345200"; d="scan'208";a="464093035" Received: from silpixa00400072.ir.intel.com ([10.237.222.213]) by fmsmga007.fm.intel.com with ESMTP; 06 Sep 2021 09:04:02 -0700 From: Vladimir Medvedkin To: dev@dpdk.org Cc: konstantin.ananyev@intel.com, andrey.chilikin@intel.com, yipeng1.wang@intel.com, sameh.gobriel@intel.com, bruce.richardson@intel.com Date: Mon, 6 Sep 2021 17:03:54 +0100 Message-Id: <1630944239-363648-1-git-send-email-vladimir.medvedkin@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 0/5] optimized Toeplitz hash implementation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 adds a new optimized implementation for the Toeplitz hash function using Galois Fields New instruction (GFNI). The main use case of this function is to calculate the hash value for a single data, so there is no bulk implementation. For performance reasons, the implementation was placed in a public header. It is the responsibility of the user to ensure the platform supports GFNI (by doing runtime checks of rte_thash_gfni_supported variable) before calling these functions. Vladimir Medvedkin (5): hash: add new toeplitz hash implementation hash: enable gfni thash implementation doc/hash: update documentation for the thash library test/thash: add tests for a new Toeplitz hash function test/thash: add performance tests for the Toeplitz hash app/test/meson.build | 2 + app/test/test_thash.c | 231 ++++++++++++++++++++++++++++ app/test/test_thash_perf.c | 125 +++++++++++++++ doc/api/doxy-api-index.md | 1 + doc/guides/prog_guide/toeplitz_hash_lib.rst | 37 ++++- doc/guides/rel_notes/release_21_11.rst | 4 + lib/hash/meson.build | 1 + lib/hash/rte_thash.c | 69 ++++++++- lib/hash/rte_thash.h | 41 +++++ lib/hash/rte_thash_gfni.h | 229 +++++++++++++++++++++++++++ lib/hash/version.map | 3 + 11 files changed, 735 insertions(+), 8 deletions(-) create mode 100644 app/test/test_thash_perf.c create mode 100644 lib/hash/rte_thash_gfni.h -- 2.7.4