Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/89004/?format=api
http://patches.dpdk.org/api/patches/89004/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210312093143.28186-9-ivan.malov@oktetlabs.ru/", "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": "<20210312093143.28186-9-ivan.malov@oktetlabs.ru>", "list_archive_url": "https://inbox.dpdk.org/dev/20210312093143.28186-9-ivan.malov@oktetlabs.ru", "date": "2021-03-12T09:31:42", "name": "[09/10] common/sfc_efx/base: support adding action DECAP to a set", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a1ee54c140ecd3cd802ffdf0eca8b682f9285852", "submitter": { "id": 869, "url": "http://patches.dpdk.org/api/people/869/?format=api", "name": "Ivan Malov", "email": "Ivan.Malov@oktetlabs.ru" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210312093143.28186-9-ivan.malov@oktetlabs.ru/mbox/", "series": [ { "id": 15630, "url": "http://patches.dpdk.org/api/series/15630/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15630", "date": "2021-03-12T09:31:34", "name": "[01/10] ethdev: reuse header definition in flow pattern item ETH", "version": 1, "mbox": "http://patches.dpdk.org/series/15630/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/89004/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/89004/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 6EA79A0547;\n\tFri, 12 Mar 2021 10:32:45 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3DC65160890;\n\tFri, 12 Mar 2021 10:32:00 +0100 (CET)", "from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113])\n by mails.dpdk.org (Postfix) with ESMTP id 18675160849\n for <dev@dpdk.org>; Fri, 12 Mar 2021 10:31:51 +0100 (CET)", "from localhost.localdomain (unknown [188.242.7.54])\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 shelob.oktetlabs.ru (Postfix) with ESMTPSA id DA3DA7F5B8;\n Fri, 12 Mar 2021 12:31:50 +0300 (MSK)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru DA3DA7F5B8", "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru;\n s=default; t=1615541510;\n bh=rVhCMRAaR5ExHk6sZZNtqhX1okazdi1EF1rlIBYBwNY=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References;\n b=p86LZWVQfiT83lY9qcoQbm3i5+hoRxN0cqVm7jkPpZnFAotYFL39iqqLn36T57Km4\n QWlVMs4A8Ns051nZnV0jnBCjGKBIIE6OzCKSr/tSxHH0xoIOk5oCKyNCRRJQg6H/hG\n MMOFIdlrOM2/Kn0HV/amYUnkNp/FYnG0nh1Wau8o=", "From": "Ivan Malov <ivan.malov@oktetlabs.ru>", "To": "dev@dpdk.org", "Cc": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Andy Moreton <amoreton@xilinx.com>, Ray Kinsella <mdr@ashroe.eu>,\n Neil Horman <nhorman@tuxdriver.com>", "Date": "Fri, 12 Mar 2021 12:31:42 +0300", "Message-Id": "<20210312093143.28186-9-ivan.malov@oktetlabs.ru>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20210312093143.28186-1-ivan.malov@oktetlabs.ru>", "References": "<20210312093143.28186-1-ivan.malov@oktetlabs.ru>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 09/10] common/sfc_efx/base: support adding action\n DECAP to a set", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The action has no arguments.\n\nSigned-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>\nReviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/common/sfc_efx/base/efx.h | 5 +++\n drivers/common/sfc_efx/base/efx_impl.h | 1 +\n drivers/common/sfc_efx/base/efx_mae.c | 48 ++++++++++++++++++++++++++\n drivers/common/sfc_efx/version.map | 1 +\n 4 files changed, 55 insertions(+)", "diff": "diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h\nindex 052946aa3..fe643de96 100644\n--- a/drivers/common/sfc_efx/base/efx.h\n+++ b/drivers/common/sfc_efx/base/efx.h\n@@ -4240,6 +4240,11 @@ efx_mae_action_set_spec_fini(\n \t__in\t\t\t\tefx_nic_t *enp,\n \t__in\t\t\t\tefx_mae_actions_t *spec);\n \n+LIBEFX_API\n+extern\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_action_set_populate_decap(\n+\t__in\t\t\t\tefx_mae_actions_t *spec);\n+\n LIBEFX_API\n extern\t__checkReturn\t\t\tefx_rc_t\n efx_mae_action_set_populate_vlan_pop(\ndiff --git a/drivers/common/sfc_efx/base/efx_impl.h b/drivers/common/sfc_efx/base/efx_impl.h\nindex 0adf43c26..7ee9ddec7 100644\n--- a/drivers/common/sfc_efx/base/efx_impl.h\n+++ b/drivers/common/sfc_efx/base/efx_impl.h\n@@ -1707,6 +1707,7 @@ struct efx_mae_match_spec_s {\n \n typedef enum efx_mae_action_e {\n \t/* These actions are strictly ordered. */\n+\tEFX_MAE_ACTION_DECAP,\n \tEFX_MAE_ACTION_VLAN_POP,\n \tEFX_MAE_ACTION_VLAN_PUSH,\n \tEFX_MAE_ACTION_ENCAP,\ndiff --git a/drivers/common/sfc_efx/base/efx_mae.c b/drivers/common/sfc_efx/base/efx_mae.c\nindex 896500de0..b384c009a 100644\n--- a/drivers/common/sfc_efx/base/efx_mae.c\n+++ b/drivers/common/sfc_efx/base/efx_mae.c\n@@ -1013,6 +1013,37 @@ efx_mae_action_set_spec_fini(\n \tEFSYS_KMEM_FREE(enp->en_esip, sizeof (*spec), spec);\n }\n \n+static\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_action_set_add_decap(\n+\t__in\t\t\t\tefx_mae_actions_t *spec,\n+\t__in\t\t\t\tsize_t arg_size,\n+\t__in_bcount(arg_size)\t\tconst uint8_t *arg)\n+{\n+\tefx_rc_t rc;\n+\n+\t_NOTE(ARGUNUSED(spec))\n+\n+\tif (arg_size != 0) {\n+\t\trc = EINVAL;\n+\t\tgoto fail1;\n+\t}\n+\n+\tif (arg != NULL) {\n+\t\trc = EINVAL;\n+\t\tgoto fail2;\n+\t}\n+\n+\t/* This action does not have any arguments, so do nothing here. */\n+\n+\treturn (0);\n+\n+fail2:\n+\tEFSYS_PROBE(fail2);\n+fail1:\n+\tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n+\treturn (rc);\n+}\n+\n static\t__checkReturn\t\t\tefx_rc_t\n efx_mae_action_set_add_vlan_pop(\n \t__in\t\t\t\tefx_mae_actions_t *spec,\n@@ -1227,6 +1258,9 @@ typedef struct efx_mae_action_desc_s {\n } efx_mae_action_desc_t;\n \n static const efx_mae_action_desc_t efx_mae_actions[EFX_MAE_NACTIONS] = {\n+\t[EFX_MAE_ACTION_DECAP] = {\n+\t\t.emad_add = efx_mae_action_set_add_decap\n+\t},\n \t[EFX_MAE_ACTION_VLAN_POP] = {\n \t\t.emad_add = efx_mae_action_set_add_vlan_pop\n \t},\n@@ -1248,6 +1282,7 @@ static const efx_mae_action_desc_t efx_mae_actions[EFX_MAE_NACTIONS] = {\n };\n \n static const uint32_t efx_mae_action_ordered_map =\n+\t(1U << EFX_MAE_ACTION_DECAP) |\n \t(1U << EFX_MAE_ACTION_VLAN_POP) |\n \t(1U << EFX_MAE_ACTION_VLAN_PUSH) |\n \t(1U << EFX_MAE_ACTION_ENCAP) |\n@@ -1343,6 +1378,14 @@ efx_mae_action_set_spec_populate(\n \treturn (rc);\n }\n \n+\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_action_set_populate_decap(\n+\t__in\t\t\t\tefx_mae_actions_t *spec)\n+{\n+\treturn (efx_mae_action_set_spec_populate(spec,\n+\t EFX_MAE_ACTION_DECAP, 0, NULL));\n+}\n+\n \t__checkReturn\t\t\tefx_rc_t\n efx_mae_action_set_populate_vlan_pop(\n \t__in\t\t\t\tefx_mae_actions_t *spec)\n@@ -2009,6 +2052,11 @@ efx_mae_action_set_alloc(\n \tMCDI_IN_SET_DWORD(req,\n \t MAE_ACTION_SET_ALLOC_IN_COUNTER_ID, EFX_MAE_RSRC_ID_INVALID);\n \n+\tif ((spec->ema_actions & (1U << EFX_MAE_ACTION_DECAP)) != 0) {\n+\t\tMCDI_IN_SET_DWORD_FIELD(req, MAE_ACTION_SET_ALLOC_IN_FLAGS,\n+\t\t MAE_ACTION_SET_ALLOC_IN_DECAP, 1);\n+\t}\n+\n \tMCDI_IN_SET_DWORD_FIELD(req, MAE_ACTION_SET_ALLOC_IN_FLAGS,\n \t MAE_ACTION_SET_ALLOC_IN_VLAN_POP, spec->ema_n_vlan_tags_to_pop);\n \ndiff --git a/drivers/common/sfc_efx/version.map b/drivers/common/sfc_efx/version.map\nindex f33a2a08e..b55e8567e 100644\n--- a/drivers/common/sfc_efx/version.map\n+++ b/drivers/common/sfc_efx/version.map\n@@ -90,6 +90,7 @@ INTERNAL {\n \tefx_mae_action_set_alloc;\n \tefx_mae_action_set_fill_in_eh_id;\n \tefx_mae_action_set_free;\n+\tefx_mae_action_set_populate_decap;\n \tefx_mae_action_set_populate_deliver;\n \tefx_mae_action_set_populate_drop;\n \tefx_mae_action_set_populate_encap;\n", "prefixes": [ "09/10" ] }{ "id": 89004, "url": "