get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/100022/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 100022,
    "url": "http://patches.dpdk.org/api/patches/100022/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210929205730.775-3-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": "<20210929205730.775-3-ivan.malov@oktetlabs.ru>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210929205730.775-3-ivan.malov@oktetlabs.ru",
    "date": "2021-09-29T20:57:22",
    "name": "[02/10] common/sfc_efx/base: add API to set RECIRC ID in outer rules",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c7a5a8c7ec40ddc3200bb1ce968fe8fd8cd5364c",
    "submitter": {
        "id": 869,
        "url": "http://patches.dpdk.org/api/people/869/?format=api",
        "name": "Ivan Malov",
        "email": "Ivan.Malov@oktetlabs.ru"
    },
    "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/20210929205730.775-3-ivan.malov@oktetlabs.ru/mbox/",
    "series": [
        {
            "id": 19272,
            "url": "http://patches.dpdk.org/api/series/19272/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19272",
            "date": "2021-09-29T20:57:20",
            "name": "net/sfc: add support for tunnel offload",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/19272/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100022/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/100022/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 EA436A0032;\n\tWed, 29 Sep 2021 22:57:56 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C85FE41101;\n\tWed, 29 Sep 2021 22:57:47 +0200 (CEST)",
            "from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113])\n by mails.dpdk.org (Postfix) with ESMTP id EAC0E410EF\n for <dev@dpdk.org>; Wed, 29 Sep 2021 22:57:44 +0200 (CEST)",
            "from localhost.localdomain (unknown [5.144.122.192])\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 8215C7F6D0;\n Wed, 29 Sep 2021 23:57:44 +0300 (MSK)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 8215C7F6D0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru;\n s=default; t=1632949064;\n bh=Dgq79iVupfr6ns8tPilkD/wdMaP1Usb9Hsy0jj/AwgM=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References;\n b=Cpy+0E/B9atYckHb6wPnNrSXMAWbAR+JRJh9G9Dfbvgx0FDH0T7uAlW8/iMRIxyB1\n zy+DlOD4Ii5eeMrC4aE1hEeUVyMa9oWxlgN+bbO1MMsU9c5ABsW+TqYOmhPL/k9JBF\n bp5dId6xMKNu8GTvyGL9KjeArdfy6l6BUEljnTuU=",
        "From": "Ivan Malov <ivan.malov@oktetlabs.ru>",
        "To": "dev@dpdk.org",
        "Cc": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Ray Kinsella <mdr@ashroe.eu>",
        "Date": "Wed, 29 Sep 2021 23:57:22 +0300",
        "Message-Id": "<20210929205730.775-3-ivan.malov@oktetlabs.ru>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20210929205730.775-1-ivan.malov@oktetlabs.ru>",
        "References": "<20210929205730.775-1-ivan.malov@oktetlabs.ru>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 02/10] common/sfc_efx/base: add API to set RECIRC\n ID in outer rules",
        "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": "When an outer rule is hit, it can pass recirculation ID down\nto action rule lookup, and action rules can match on this ID\ninstead of matching on the outer rule allocation handle.\nBy default, recirculation ID is assumed to be zero.\n\nAdd an API to set recirculation ID in outer rules.\n\nSigned-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>\nReviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\n---\n drivers/common/sfc_efx/base/efx.h      |  9 +++++++++\n drivers/common/sfc_efx/base/efx_impl.h |  1 +\n drivers/common/sfc_efx/base/efx_mae.c  | 24 ++++++++++++++++++++++++\n drivers/common/sfc_efx/version.map     |  1 +\n 4 files changed, 35 insertions(+)",
    "diff": "diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h\nindex bed1029f59..ca747de7a4 100644\n--- a/drivers/common/sfc_efx/base/efx.h\n+++ b/drivers/common/sfc_efx/base/efx.h\n@@ -4385,6 +4385,15 @@ typedef struct efx_mae_rule_id_s {\n \tuint32_t id;\n } efx_mae_rule_id_t;\n \n+/*\n+ * Set the initial recirculation ID. It goes to action rule (AR) lookup.\n+ */\n+LIBEFX_API\n+extern\t__checkReturn\t\t\tefx_rc_t\n+efx_mae_outer_rule_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\tefx_rc_t\n efx_mae_outer_rule_insert(\ndiff --git a/drivers/common/sfc_efx/base/efx_impl.h b/drivers/common/sfc_efx/base/efx_impl.h\nindex 992edbabe3..45dc7803db 100644\n--- a/drivers/common/sfc_efx/base/efx_impl.h\n+++ b/drivers/common/sfc_efx/base/efx_impl.h\n@@ -1727,6 +1727,7 @@ struct efx_mae_match_spec_s {\n \t\t\t\t\t    MAE_FIELD_MASK_VALUE_PAIRS_V2_LEN];\n \t\tuint8_t\t\t\touter[MAE_ENC_FIELD_PAIRS_LEN];\n \t} emms_mask_value_pairs;\n+\tuint8_t\t\t\t\temms_outer_rule_recirc_id;\n };\n \n typedef enum efx_mae_action_e {\ndiff --git a/drivers/common/sfc_efx/base/efx_mae.c b/drivers/common/sfc_efx/base/efx_mae.c\nindex c22206e227..c37e90831f 100644\n--- a/drivers/common/sfc_efx/base/efx_mae.c\n+++ b/drivers/common/sfc_efx/base/efx_mae.c\n@@ -1945,6 +1945,27 @@ efx_mae_match_specs_class_cmp(\n \n fail2:\n \tEFSYS_PROBE(fail2);\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_outer_rule_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+\tefx_rc_t rc;\n+\n+\tif (spec->emms_type != EFX_MAE_RULE_OUTER) {\n+\t\trc = EINVAL;\n+\t\tgoto fail1;\n+\t}\n+\n+\tspec->emms_outer_rule_recirc_id = recirc_id;\n+\n+\treturn (0);\n+\n fail1:\n \tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n \treturn (rc);\n@@ -2023,6 +2044,9 @@ efx_mae_outer_rule_insert(\n \tmemcpy(payload + offset, spec->emms_mask_value_pairs.outer,\n \t    MAE_ENC_FIELD_PAIRS_LEN);\n \n+\tMCDI_IN_SET_BYTE(req, MAE_OUTER_RULE_INSERT_IN_RECIRC_ID,\n+\t    spec->emms_outer_rule_recirc_id);\n+\n \tefx_mcdi_execute(enp, &req);\n \n \tif (req.emr_rc != 0) {\ndiff --git a/drivers/common/sfc_efx/version.map b/drivers/common/sfc_efx/version.map\nindex 0c5bcdfa84..d4878dfb9a 100644\n--- a/drivers/common/sfc_efx/version.map\n+++ b/drivers/common/sfc_efx/version.map\n@@ -127,6 +127,7 @@ INTERNAL {\n \tefx_mae_mport_by_pcie_function;\n \tefx_mae_mport_by_phy_port;\n \tefx_mae_outer_rule_insert;\n+\tefx_mae_outer_rule_recirc_id_set;\n \tefx_mae_outer_rule_remove;\n \n \tefx_mcdi_fini;\n",
    "prefixes": [
        "02/10"
    ]
}