Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/128297/?format=api
http://patches.dpdk.org/api/patches/128297/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230607130245.8048-9-ivan.malov@arknetworks.am/", "project": { "id": 1, "url": "http://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": "<20230607130245.8048-9-ivan.malov@arknetworks.am>", "list_archive_url": "https://inbox.dpdk.org/dev/20230607130245.8048-9-ivan.malov@arknetworks.am", "date": "2023-06-07T13:02:19", "name": "[v4,08/34] net/sfc: add MCDI wrappers for BCAM tables", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "494143befed6741b060951950330bdab6f649b4d", "submitter": { "id": 2962, "url": "http://patches.dpdk.org/api/people/2962/?format=api", "name": "Ivan Malov", "email": "ivan.malov@arknetworks.am" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230607130245.8048-9-ivan.malov@arknetworks.am/mbox/", "series": [ { "id": 28390, "url": "http://patches.dpdk.org/api/series/28390/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28390", "date": "2023-06-07T13:02:11", "name": "net/sfc: support HW conntrack assistance", "version": 4, "mbox": "http://patches.dpdk.org/series/28390/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/128297/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/128297/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 D58EB42C4D;\n\tWed, 7 Jun 2023 15:04:04 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5889C42D4F;\n\tWed, 7 Jun 2023 15:02:57 +0200 (CEST)", "from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80])\n by mails.dpdk.org (Postfix) with ESMTP id 4651042D10\n for <dev@dpdk.org>; Wed, 7 Jun 2023 15:02:51 +0200 (CEST)", "from localhost.localdomain (unknown [78.109.69.83])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by agw.arknetworks.am (Postfix) with ESMTPSA id B503FE1251;\n Wed, 7 Jun 2023 17:02:50 +0400 (+04)" ], "From": "Ivan Malov <ivan.malov@arknetworks.am>", "To": "dev@dpdk.org", "Cc": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Ferruh Yigit <ferruh.yigit@amd.com>,\n Denis Pryazhennikov <denis.pryazhennikov@arknetworks.am>,\n Andy Moreton <amoreton@xilinx.com>", "Subject": "[PATCH v4 08/34] net/sfc: add MCDI wrappers for BCAM tables", "Date": "Wed, 7 Jun 2023 17:02:19 +0400", "Message-Id": "<20230607130245.8048-9-ivan.malov@arknetworks.am>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20230607130245.8048-1-ivan.malov@arknetworks.am>", "References": "<20230601195538.8265-1-ivan.malov@arknetworks.am>\n <20230607130245.8048-1-ivan.malov@arknetworks.am>", "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": "From: Denis Pryazhennikov <denis.pryazhennikov@arknetworks.am>\n\nA \"table\" is structure used for lookups, consisting of a set of\nentries which can be matched against an N-bit \"request\", to\nreturn either a \"hit\" with an M-bit \"response\", or a \"miss\" if\nthere is no match. There are a number of HW tables of various\ntypes that could be used in MAE.\n\nIn some types of table the entry may also be associated with an\nN-bit \"mask\", allowing some bits of the request to be treated as\ndon't-care, and an integer \"priority\" to determine which entry is\nused if more than one matches.\n\nBCAM tables don't support \"mask\" and \"priority\", so the\ncorresponding fields must be zeroed.\n\nSigned-off-by: Denis Pryazhennikov <denis.pryazhennikov@arknetworks.am>\nReviewed-by: Ivan Malov <ivan.malov@arknetworks.am>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/net/sfc/sfc_tbls.h | 69 ++++++++++++++++++++++++++++++++++++++\n 1 file changed, 69 insertions(+)\n create mode 100644 drivers/net/sfc/sfc_tbls.h", "diff": "diff --git a/drivers/net/sfc/sfc_tbls.h b/drivers/net/sfc/sfc_tbls.h\nnew file mode 100644\nindex 0000000000..302f67224c\n--- /dev/null\n+++ b/drivers/net/sfc/sfc_tbls.h\n@@ -0,0 +1,69 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ *\n+ * Copyright (c) 2023 Advanced Micro Devices, Inc.\n+ */\n+\n+#ifndef _SFC_TBLS_H\n+#define _SFC_TBLS_H\n+\n+#include \"efx.h\"\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+/*\n+ * Table types:\n+ * CAM - Content addressable memory\n+ * BCAM - Binary CAM\n+ * TCAM - Ternary CAM\n+ * STCAM - Semi-ternary CAM\n+ *\n+ * Short description:\n+ * TCAM: Each entry has a key, mask, response and priority. An entry matches\n+ * when (key & mask) == (request & mask). In the case of multiple\n+ * matches, the entry with the highest priority wins; Each entry may\n+ * have its own mask, but TCAM table definitions may place constraints\n+ * on the possible masks allowed for each of the individual fields.\n+ * STCAM: A limited form of TCAM in which only a limited number of masks and\n+ * associated priorities), up to some maximum fixed by the definition\n+ * of the table, may be in use at any one time.\n+ * BCAM: Each entry has only a key and response, with the whole request\n+ * matched against the key (like a typical hash table or \"map\").\n+ * Direct (sometimes \"DCAM\", although it's not really content-addressable):\n+ * Essentially just an array, where the key bits are used simply as an\n+ * index.\n+ */\n+\n+/* Priority is used only for TCAM or STCAM, use 0 in case of BCAM */\n+#define SFC_TBLS_BCAM_PRIORITY\t\t0\n+\n+/* Mask ID is used only for STCAM with ALLOC_MASKS flag, use 0 for BCAM */\n+#define SFC_TBLS_BCAM_MASK_ID\t\t0\n+\n+/* Mask is used only for STCAM */\n+#define SFC_TBLS_BCAM_MASK_WIDTH\t0\n+\n+static inline int\n+sfc_tbls_bcam_entry_insert(efx_nic_t *enp, efx_table_id_t table_id, uint16_t key_width,\n+\t\t\t uint16_t resp_width, uint8_t *data, unsigned int data_size)\n+{\n+\treturn efx_table_entry_insert(enp, table_id, SFC_TBLS_BCAM_PRIORITY,\n+\t\t\t\t SFC_TBLS_BCAM_MASK_ID, key_width,\n+\t\t\t\t SFC_TBLS_BCAM_MASK_WIDTH, resp_width,\n+\t\t\t\t data, data_size);\n+}\n+\n+static inline int\n+sfc_tbls_bcam_entry_delete(efx_nic_t *enp, efx_table_id_t table_id, uint16_t key_width,\n+\t\t\t uint8_t *data, unsigned int data_size)\n+{\n+\treturn efx_table_entry_delete(enp, table_id, SFC_TBLS_BCAM_MASK_ID,\n+\t\t\t\t key_width, SFC_TBLS_BCAM_MASK_WIDTH,\n+\t\t\t\t data, data_size);\n+}\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+#endif /* _SFC_TBLS_H */\n", "prefixes": [ "v4", "08/34" ] }{ "id": 128297, "url": "