Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115297/?format=api
http://patchwork.dpdk.org/api/patches/115297/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220819195225.1483020-2-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20220819195225.1483020-2-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220819195225.1483020-2-cristian.dumitrescu@intel.com", "date": "2022-08-19T19:52:20", "name": "[V2,1/6] table: add hash function prototype", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "dbb77f4aff8961ba7f494d5176413fab01a9e822", "submitter": { "id": 19, "url": "http://patchwork.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220819195225.1483020-2-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 24366, "url": "http://patchwork.dpdk.org/api/series/24366/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24366", "date": "2022-08-19T19:52:19", "name": "pipeline: make the hash function configurable per table", "version": 2, "mbox": "http://patchwork.dpdk.org/series/24366/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/115297/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/115297/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 317BDA034C;\n\tFri, 19 Aug 2022 21:52:35 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A4D32410E8;\n\tFri, 19 Aug 2022 21:52:30 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id C190E40689\n for <dev@dpdk.org>; Fri, 19 Aug 2022 21:52:28 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Aug 2022 12:52:28 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by orsmga007.jf.intel.com with ESMTP; 19 Aug 2022 12:52:27 -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=1660938749; x=1692474749;\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=QQwA2Wk32e8Xxrpq2lRU9ARWy5Oef/4Gn5wZo4BdrHsKO32EyeBcg5ev\n b+YQacLNj+NZwMdzquhYJjEIrGP70oqN2XMDawqFsEIRRxyqUr9dvgPUE\n U2pGzU9SZXPgDA7QnIbSfyoU/CNWbFRNbOZoa+lJRfmgdXrmMh3apt4Xx\n FoJvRYQ6D+UVCDV2RQXTEsoAxxJqtkQAvCx5w99z11cT/1Z+5ACTpbvz/\n 1snPk11ZQlzb83cRmgcZfv+iOs9CHh7Ptg2y3gghy1WuFSfu7BWvyvixG\n wHTo06r7oUnoVxM8M495zJq5mrD+p4f0T0Pp7fyJJM3t/CV1NRcbSo1ac A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10444\"; a=\"280047520\"", "E=Sophos;i=\"5.93,249,1654585200\"; d=\"scan'208\";a=\"280047520\"", "E=Sophos;i=\"5.93,248,1654585200\"; d=\"scan'208\";a=\"604695941\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "\"Kamalakannan R .\" <kamalakannan.r@intel.com>", "Subject": "[PATCH V2 1/6] table: add hash function prototype", "Date": "Fri, 19 Aug 2022 19:52:20 +0000", "Message-Id": "<20220819195225.1483020-2-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220819195225.1483020-1-cristian.dumitrescu@intel.com>", "References": "<20220818114449.1408226-1-cristian.dumitrescu@intel.com>\n <20220819195225.1483020-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": [ "V2", "1/6" ] }{ "id": 115297, "url": "