Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115237/?format=api
https://patches.dpdk.org/api/patches/115237/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220818114449.1408226-2-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220818114449.1408226-2-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220818114449.1408226-2-cristian.dumitrescu@intel.com", "date": "2022-08-18T11:44:44", "name": "[1/6] table: add hash function prototype", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dbb77f4aff8961ba7f494d5176413fab01a9e822", "submitter": { "id": 19, "url": "https://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220818114449.1408226-2-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 24356, "url": "https://patches.dpdk.org/api/series/24356/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24356", "date": "2022-08-18T11:44:43", "name": "pipeline: make the hash function configurable per table", "version": 1, "mbox": "https://patches.dpdk.org/series/24356/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/115237/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/115237/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B2D1BA034C;\n\tThu, 18 Aug 2022 13:45:14 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CE24141181;\n\tThu, 18 Aug 2022 13:45:05 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 1105B40694\n for <dev@dpdk.org>; Thu, 18 Aug 2022 13:45:02 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Aug 2022 04:44:51 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by fmsmga008.fm.intel.com with ESMTP; 18 Aug 2022 04:44:50 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1660823103; x=1692359103;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=fPn5GeKeW9fufNyf0xbK/alnePqc6UIEFaEZpjPodtc=;\n b=LqveqxSbjC53q6czLnVwPhuogJ3NUY5btVoK4nVyJ0GuXjhFuK70ZZFI\n 0iZ47mJblq1ghrFvBZ+cSfA/A6Fsw6UhVUdnVWCjB5Yjr/3K4SXe2aI5V\n bLDCYj9KJsigi8XPNm4cnNI3ykUV2RrCKkOAyve0UYK7bmR8yJSWu1cqD\n 8NebGaeKoJb3/qRRdhDa5nHcDYHQmU5i4rvW/4hbeoF3uFH5kU8/6Kr75\n QR7d6YScrUcoR19R+ESmEH1UScifn4ia3e2XB9fL1mUwkYCqhU05BpRTI\n fh262sciEJi7R0q19RAY6eqlB4x/qoUyRAxTILFxLF4yqvYsY5mUbOhft w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10442\"; a=\"292735206\"", "E=Sophos;i=\"5.93,246,1654585200\"; d=\"scan'208\";a=\"292735206\"", "E=Sophos;i=\"5.93,246,1654585200\"; d=\"scan'208\";a=\"668069697\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "\"Kamalakannan R .\" <kamalakannan.r@intel.com>", "Subject": "[PATCH 1/6] table: add hash function prototype", "Date": "Thu, 18 Aug 2022 11:44:44 +0000", "Message-Id": "<20220818114449.1408226-2-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220818114449.1408226-1-cristian.dumitrescu@intel.com>", "References": "<20220818114449.1408226-1-cristian.dumitrescu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Add hash function prototype to be used by the exact match and the\nlearner table types. The hash function is not mask-based, so the table\nkey fields have to be contiguous in memory.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Kamalakannan R. <kamalakannan.r@intel.com>\n---\n lib/table/meson.build | 1 +\n lib/table/rte_swx_hash_func.h | 39 +++++++++++++++++++++++++++++++++++\n 2 files changed, 40 insertions(+)\n create mode 100644 lib/table/rte_swx_hash_func.h", "diff": "diff --git a/lib/table/meson.build b/lib/table/meson.build\nindex d1f2f9dcf6..6d4272c4ef 100644\n--- a/lib/table/meson.build\n+++ b/lib/table/meson.build\n@@ -26,6 +26,7 @@ sources = files(\n )\n headers = files(\n 'rte_lru.h',\n+\t'rte_swx_hash_func.h',\n 'rte_swx_table.h',\n 'rte_swx_table_em.h',\n 'rte_swx_table_learner.h',\ndiff --git a/lib/table/rte_swx_hash_func.h b/lib/table/rte_swx_hash_func.h\nnew file mode 100644\nindex 0000000000..04f3d543e7\n--- /dev/null\n+++ b/lib/table/rte_swx_hash_func.h\n@@ -0,0 +1,39 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2022 Intel Corporation\n+ */\n+#ifndef __INCLUDE_RTE_SWX_HASH_FUNC_H__\n+#define __INCLUDE_RTE_SWX_HASH_FUNC_H__\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+/**\n+ * @file\n+ * RTE SWX Hash Function\n+ */\n+\n+#include <stdint.h>\n+\n+/**\n+ * Hash function prototype\n+ *\n+ * @param[in] key\n+ * Key to hash. Must be non-NULL.\n+ * @param[in] length\n+ * Key length in bytes.\n+ * @param[in] seed\n+ * Hash seed.\n+ * @return\n+ * Hash value.\n+ */\n+typedef uint32_t\n+(*rte_swx_hash_func_t)(const void *key,\n+\t\t uint32_t length,\n+\t\t uint32_t seed);\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif\n", "prefixes": [ "1/6" ] }{ "id": 115237, "url": "