Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127896/?format=api
http://patches.dpdk.org/api/patches/127896/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230601195538.8265-24-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": "<20230601195538.8265-24-ivan.malov@arknetworks.am>", "list_archive_url": "https://inbox.dpdk.org/dev/20230601195538.8265-24-ivan.malov@arknetworks.am", "date": "2023-06-01T19:55:27", "name": "[23/34] common/sfc_efx/base: match on conntrack mark in action rules", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "062b0b7eaaddaf77aa6c4f51fa22dec2c0474f0b", "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/20230601195538.8265-24-ivan.malov@arknetworks.am/mbox/", "series": [ { "id": 28307, "url": "http://patches.dpdk.org/api/series/28307/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28307", "date": "2023-06-01T19:55:04", "name": "net/sfc: support HW conntrack assistance", "version": 1, "mbox": "http://patches.dpdk.org/series/28307/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/127896/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/127896/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 E7F3A42C07;\n\tThu, 1 Jun 2023 21:58:14 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DEC7942FC4;\n\tThu, 1 Jun 2023 21:56:09 +0200 (CEST)", "from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80])\n by mails.dpdk.org (Postfix) with ESMTP id 99D5A42D69\n for <dev@dpdk.org>; Thu, 1 Jun 2023 21:55:53 +0200 (CEST)", "from localhost.localdomain (unknown [78.109.69.146])\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 28A91E1283;\n Thu, 1 Jun 2023 23:55:53 +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>, Andy Moreton <amoreton@xilinx.com>", "Subject": "[PATCH 23/34] common/sfc_efx/base: match on conntrack mark in action\n rules", "Date": "Thu, 1 Jun 2023 23:55:27 +0400", "Message-Id": "<20230601195538.8265-24-ivan.malov@arknetworks.am>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20230601195538.8265-1-ivan.malov@arknetworks.am>", "References": "<20230601195538.8265-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": "EF100 match-action engine (MAE) has conntrack assistance\ntable. A hit in this table can provide a mark value for\nthe following lookup stage, which is action rule lookup.\n\nProvide support for setting match on conntrack mark.\n\nSigned-off-by: Ivan Malov <ivan.malov@arknetworks.am>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/common/sfc_efx/base/efx.h | 7 +++++++\n drivers/common/sfc_efx/base/efx_mae.c | 28 +++++++++++++++++++++++++++\n drivers/common/sfc_efx/version.map | 1 +\n 3 files changed, 36 insertions(+)", "diff": "diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h\nindex fc5c64c2d1..e923032191 100644\n--- a/drivers/common/sfc_efx/base/efx.h\n+++ b/drivers/common/sfc_efx/base/efx.h\n@@ -4276,6 +4276,7 @@ typedef enum efx_mae_field_id_e {\n \t * or by using dedicated field-specific helper APIs.\n \t */\n \tEFX_MAE_FIELD_RECIRC_ID,\n+\tEFX_MAE_FIELD_CT_MARK,\n \tEFX_MAE_FIELD_NIDS\n } efx_mae_field_id_t;\n \n@@ -4462,6 +4463,12 @@ efx_mae_match_spec_recirc_id_set(\n \t__in\t\t\t\tefx_mae_match_spec_t *spec,\n \t__in\t\t\t\tuint8_t recirc_id);\n \n+LIBEFX_API\n+extern\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_match_spec_ct_mark_set(\n+\t__in\t\t\t\tefx_mae_match_spec_t *spec,\n+\t__in\t\t\t\tuint32_t ct_mark);\n+\n LIBEFX_API\n extern\t__checkReturn\t\t\tefx_rc_t\n efx_mae_match_spec_clone(\ndiff --git a/drivers/common/sfc_efx/base/efx_mae.c b/drivers/common/sfc_efx/base/efx_mae.c\nindex 48f98e3c42..3dcce88928 100644\n--- a/drivers/common/sfc_efx/base/efx_mae.c\n+++ b/drivers/common/sfc_efx/base/efx_mae.c\n@@ -474,6 +474,7 @@ typedef enum efx_mae_field_cap_id_e {\n \tEFX_MAE_FIELD_ID_ENC_HAS_OVLAN = MAE_FIELD_ENC_HAS_OVLAN,\n \tEFX_MAE_FIELD_ID_ENC_HAS_IVLAN = MAE_FIELD_ENC_HAS_IVLAN,\n \tEFX_MAE_FIELD_ID_RECIRC_ID = MAE_FIELD_RECIRC_ID,\n+\tEFX_MAE_FIELD_ID_CT_MARK = MAE_FIELD_CT_MARK,\n \n \tEFX_MAE_FIELD_CAP_NIDS\n } efx_mae_field_cap_id_t;\n@@ -549,6 +550,7 @@ static const efx_mae_mv_desc_t __efx_mae_action_rule_mv_desc_set[] = {\n \tEFX_MAE_MV_DESC(ENC_VNET_ID_BE, EFX_MAE_FIELD_BE),\n \tEFX_MAE_MV_DESC(OUTER_RULE_ID, EFX_MAE_FIELD_LE),\n \tEFX_MAE_MV_DESC(RECIRC_ID, EFX_MAE_FIELD_LE),\n+\tEFX_MAE_MV_DESC(CT_MARK, EFX_MAE_FIELD_LE),\n \n #undef EFX_MAE_MV_DESC\n };\n@@ -910,6 +912,32 @@ efx_mae_match_spec_recirc_id_set(\n \n \treturn (0);\n \n+fail1:\n+\tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n+\treturn (rc);\n+}\n+\n+\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_match_spec_ct_mark_set(\n+\t__in\t\t\t\tefx_mae_match_spec_t *spec,\n+\t__in\t\t\t\tuint32_t ct_mark)\n+{\n+\tuint32_t full_mask = UINT32_MAX;\n+\tconst uint8_t *vp;\n+\tconst uint8_t *mp;\n+\tefx_rc_t rc;\n+\n+\tmp = (const uint8_t *)&full_mask;\n+\tvp = (const uint8_t *)&ct_mark;\n+\n+\trc = efx_mae_match_spec_field_set(spec, EFX_MAE_FIELD_CT_MARK,\n+\t\t\t\t\t sizeof (ct_mark), vp,\n+\t\t\t\t\t sizeof (full_mask), mp);\n+\tif (rc != 0)\n+\t\tgoto fail1;\n+\n+\treturn (0);\n+\n fail1:\n \tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n \treturn (rc);\ndiff --git a/drivers/common/sfc_efx/version.map b/drivers/common/sfc_efx/version.map\nindex 3ac2fb12f3..d0c7e99686 100644\n--- a/drivers/common/sfc_efx/version.map\n+++ b/drivers/common/sfc_efx/version.map\n@@ -126,6 +126,7 @@ INTERNAL {\n \tefx_mae_mac_addr_free;\n \tefx_mae_match_spec_bit_set;\n \tefx_mae_match_spec_clone;\n+\tefx_mae_match_spec_ct_mark_set;\n \tefx_mae_match_spec_field_get;\n \tefx_mae_match_spec_field_set;\n \tefx_mae_match_spec_fini;\n", "prefixes": [ "23/34" ] }{ "id": 127896, "url": "