get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81572,
    "url": "http://patches.dpdk.org/api/patches/81572/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1603185222-14831-57-git-send-email-arybchenko@solarflare.com/",
    "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": "<1603185222-14831-57-git-send-email-arybchenko@solarflare.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1603185222-14831-57-git-send-email-arybchenko@solarflare.com",
    "date": "2020-10-20T09:13:36",
    "name": "[v2,56/62] common/sfc_efx/base: add MAE encap. match fields",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "359708e699b8f67414a13082116acd7594dace98",
    "submitter": {
        "id": 607,
        "url": "http://patches.dpdk.org/api/people/607/?format=api",
        "name": "Andrew Rybchenko",
        "email": "arybchenko@solarflare.com"
    },
    "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/1603185222-14831-57-git-send-email-arybchenko@solarflare.com/mbox/",
    "series": [
        {
            "id": 13137,
            "url": "http://patches.dpdk.org/api/series/13137/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13137",
            "date": "2020-10-20T09:12:44",
            "name": "net/sfc: support flow API transfer rules",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/13137/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/81572/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/81572/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 030E9A04DD;\n\tTue, 20 Oct 2020 11:41:24 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B3E04FCF5;\n\tTue, 20 Oct 2020 11:16:13 +0200 (CEST)",
            "from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com\n [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 5696EC83C\n for <dev@dpdk.org>; Tue, 20 Oct 2020 11:14:21 +0200 (CEST)",
            "from mx1-us1.ppe-hosted.com (unknown [10.7.65.64])\n by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id\n 493E06004D for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:19 +0000 (UTC)",
            "from us4-mdac16-65.ut7.mdlocal (unknown [10.7.66.64])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 473142009B\n for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:19 +0000 (UTC)",
            "from mx1-us1.ppe-hosted.com (unknown [10.7.66.30])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id\n C2B6722004D\n for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:18 +0000 (UTC)",
            "from webmail.solarflare.com (uk.solarflare.com [193.34.186.16])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))\n (No client certificate requested)\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id\n 79616100077\n for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:18 +0000 (UTC)",
            "from ukex01.SolarFlarecom.com (10.17.10.4) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id\n 15.0.1497.2; Tue, 20 Oct 2020 10:14:02 +0100",
            "from opal.uk.solarflarecom.com (10.17.10.1) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id\n 15.0.1497.2 via Frontend Transport; Tue, 20 Oct 2020 10:14:02 +0100",
            "from ukv-loginhost.uk.solarflarecom.com\n (ukv-loginhost.uk.solarflarecom.com [10.17.10.39])\n by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 09K9E1KI028557;\n Tue, 20 Oct 2020 10:14:01 +0100",
            "from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1])\n by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id D5A081613AB;\n Tue, 20 Oct 2020 10:14:01 +0100 (BST)"
        ],
        "X-Virus-Scanned": "Proofpoint Essentials engine",
        "From": "Andrew Rybchenko <arybchenko@solarflare.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Ivan Malov <ivan.malov@oktetlabs.ru>",
        "Date": "Tue, 20 Oct 2020 10:13:36 +0100",
        "Message-ID": "<1603185222-14831-57-git-send-email-arybchenko@solarflare.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1603185222-14831-1-git-send-email-arybchenko@solarflare.com>",
        "References": "<1603183709-23420-1-git-send-email-arybchenko@solarflare.com>\n <1603185222-14831-1-git-send-email-arybchenko@solarflare.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-TM-AS-Product-Ver": "SMEX-12.5.0.1300-8.6.1012-25736.003",
        "X-TM-AS-Result": "No-0.450900-8.000000-10",
        "X-TMASE-MatchedRID": "0ewWeSi3LUlIm8dlggjEyIdlc1JaOB1T3aHfGa/QuY/cUlQs8YFKzuZ5\n Gn23AeDZuA9fFHhyLzywgcHDNo5AtCHhSBQfglfsA9lly13c/gEyieckNRsVxx9W4auM/sn0j++\n ck7gzviB9nXBYBc7+9RLUZu/IHKwxFUPnz5fE4uP0MaQO2ri8DPoMe2Os6+g5myiLZetSf8mfop\n 0ytGwvXiq2rl3dzGQ1sJmqsJ/dI9+YY7qGTMxERZIMqWKN4/8VnHy/IrOPsiv7E8fFVUVOi/U34\n d/y/jJFAKu1NGLkIOd0vW21E/pKAHfJ1aogE706UuniFRR7Z6E4oGQUCbwY5Q+g7mdwjo656FtD\n ZCmYBJ1Y8paICU20jkMMprcbiest",
        "X-TM-AS-User-Approved-Sender": "Yes",
        "X-TM-AS-User-Blocked-Sender": "No",
        "X-TMASE-Result": "10-0.450900-8.000000",
        "X-TMASE-Version": "SMEX-12.5.0.1300-8.6.1012-25736.003",
        "X-MDID": "1603185259-raQnd5_cHfv6",
        "X-PPE-DISP": "1603185259;raQnd5_cHfv6",
        "Subject": "[dpdk-dev] [PATCH v2 56/62] common/sfc_efx/base: add MAE encap.\n\tmatch fields",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "From: Ivan Malov <ivan.malov@oktetlabs.ru>\n\nAdd MCDI-compatible enumeration for these fields and\nprovide necessary mappings for them to be inserted\ndirectly into mask-value pairs buffer.\n\nThese fields are meant to comprise a so-called outer\nmatch specification; provide necessary definitions.\n\nSigned-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>\nSigned-off-by: Andrew Rybchenko <arybchenko@solarflare.com>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/common/sfc_efx/base/efx.h      | 17 ++++++++\n drivers/common/sfc_efx/base/efx_impl.h |  1 +\n drivers/common/sfc_efx/base/efx_mae.c  | 56 ++++++++++++++++++++++++++\n 3 files changed, 74 insertions(+)",
    "diff": "diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h\nindex dea1fe3979..29ef20facc 100644\n--- a/drivers/common/sfc_efx/base/efx.h\n+++ b/drivers/common/sfc_efx/base/efx.h\n@@ -4080,6 +4080,7 @@ efx_mae_get_limits(\n \n typedef enum efx_mae_rule_type_e {\n \tEFX_MAE_RULE_ACTION = 0,\n+\tEFX_MAE_RULE_OUTER,\n \n \tEFX_MAE_RULE_NTYPES\n } efx_mae_rule_type_t;\n@@ -4119,6 +4120,22 @@ typedef enum efx_mae_field_id_e {\n \tEFX_MAE_FIELD_L4_SPORT_BE,\n \tEFX_MAE_FIELD_L4_DPORT_BE,\n \tEFX_MAE_FIELD_TCP_FLAGS_BE,\n+\tEFX_MAE_FIELD_ENC_ETHER_TYPE_BE,\n+\tEFX_MAE_FIELD_ENC_ETH_SADDR_BE,\n+\tEFX_MAE_FIELD_ENC_ETH_DADDR_BE,\n+\tEFX_MAE_FIELD_ENC_VLAN0_TCI_BE,\n+\tEFX_MAE_FIELD_ENC_VLAN0_PROTO_BE,\n+\tEFX_MAE_FIELD_ENC_VLAN1_TCI_BE,\n+\tEFX_MAE_FIELD_ENC_VLAN1_PROTO_BE,\n+\tEFX_MAE_FIELD_ENC_SRC_IP4_BE,\n+\tEFX_MAE_FIELD_ENC_DST_IP4_BE,\n+\tEFX_MAE_FIELD_ENC_IP_PROTO,\n+\tEFX_MAE_FIELD_ENC_IP_TOS,\n+\tEFX_MAE_FIELD_ENC_IP_TTL,\n+\tEFX_MAE_FIELD_ENC_SRC_IP6_BE,\n+\tEFX_MAE_FIELD_ENC_DST_IP6_BE,\n+\tEFX_MAE_FIELD_ENC_L4_SPORT_BE,\n+\tEFX_MAE_FIELD_ENC_L4_DPORT_BE,\n \n \tEFX_MAE_FIELD_NIDS\n } efx_mae_field_id_t;\ndiff --git a/drivers/common/sfc_efx/base/efx_impl.h b/drivers/common/sfc_efx/base/efx_impl.h\nindex 900a8c9c6a..6a8b8d65f1 100644\n--- a/drivers/common/sfc_efx/base/efx_impl.h\n+++ b/drivers/common/sfc_efx/base/efx_impl.h\n@@ -1698,6 +1698,7 @@ struct efx_mae_match_spec_s {\n \tuint32_t\t\t\temms_prio;\n \tunion emms_mask_value_pairs {\n \t\tuint8_t\t\t\taction[MAE_FIELD_MASK_VALUE_PAIRS_LEN];\n+\t\tuint8_t\t\t\touter[MAE_ENC_FIELD_PAIRS_LEN];\n \t} emms_mask_value_pairs;\n };\n \ndiff --git a/drivers/common/sfc_efx/base/efx_mae.c b/drivers/common/sfc_efx/base/efx_mae.c\nindex 4e51c7b69b..13ccd79f31 100644\n--- a/drivers/common/sfc_efx/base/efx_mae.c\n+++ b/drivers/common/sfc_efx/base/efx_mae.c\n@@ -267,6 +267,8 @@ efx_mae_match_spec_init(\n \tefx_rc_t rc;\n \n \tswitch (type) {\n+\tcase EFX_MAE_RULE_OUTER:\n+\t\tbreak;\n \tcase EFX_MAE_RULE_ACTION:\n \t\tbreak;\n \tdefault:\n@@ -322,6 +324,22 @@ typedef enum efx_mae_field_cap_id_e {\n \tEFX_MAE_FIELD_ID_L4_SPORT_BE = MAE_FIELD_L4_SPORT,\n \tEFX_MAE_FIELD_ID_L4_DPORT_BE = MAE_FIELD_L4_DPORT,\n \tEFX_MAE_FIELD_ID_TCP_FLAGS_BE = MAE_FIELD_TCP_FLAGS,\n+\tEFX_MAE_FIELD_ID_ENC_ETHER_TYPE_BE = MAE_FIELD_ENC_ETHER_TYPE,\n+\tEFX_MAE_FIELD_ID_ENC_ETH_SADDR_BE = MAE_FIELD_ENC_ETH_SADDR,\n+\tEFX_MAE_FIELD_ID_ENC_ETH_DADDR_BE = MAE_FIELD_ENC_ETH_DADDR,\n+\tEFX_MAE_FIELD_ID_ENC_VLAN0_TCI_BE = MAE_FIELD_ENC_VLAN0_TCI,\n+\tEFX_MAE_FIELD_ID_ENC_VLAN0_PROTO_BE = MAE_FIELD_ENC_VLAN0_PROTO,\n+\tEFX_MAE_FIELD_ID_ENC_VLAN1_TCI_BE = MAE_FIELD_ENC_VLAN1_TCI,\n+\tEFX_MAE_FIELD_ID_ENC_VLAN1_PROTO_BE = MAE_FIELD_ENC_VLAN1_PROTO,\n+\tEFX_MAE_FIELD_ID_ENC_SRC_IP4_BE = MAE_FIELD_ENC_SRC_IP4,\n+\tEFX_MAE_FIELD_ID_ENC_DST_IP4_BE = MAE_FIELD_ENC_DST_IP4,\n+\tEFX_MAE_FIELD_ID_ENC_IP_PROTO = MAE_FIELD_ENC_IP_PROTO,\n+\tEFX_MAE_FIELD_ID_ENC_IP_TOS = MAE_FIELD_ENC_IP_TOS,\n+\tEFX_MAE_FIELD_ID_ENC_IP_TTL = MAE_FIELD_ENC_IP_TTL,\n+\tEFX_MAE_FIELD_ID_ENC_SRC_IP6_BE = MAE_FIELD_ENC_SRC_IP6,\n+\tEFX_MAE_FIELD_ID_ENC_DST_IP6_BE = MAE_FIELD_ENC_DST_IP6,\n+\tEFX_MAE_FIELD_ID_ENC_L4_SPORT_BE = MAE_FIELD_ENC_L4_SPORT,\n+\tEFX_MAE_FIELD_ID_ENC_L4_DPORT_BE = MAE_FIELD_ENC_L4_DPORT,\n \n \tEFX_MAE_FIELD_CAP_NIDS\n } efx_mae_field_cap_id_t;\n@@ -382,6 +400,40 @@ static const efx_mae_mv_desc_t __efx_mae_action_rule_mv_desc_set[] = {\n \tEFX_MAE_MV_DESC(L4_DPORT_BE, EFX_MAE_FIELD_BE),\n \tEFX_MAE_MV_DESC(TCP_FLAGS_BE, EFX_MAE_FIELD_BE),\n \n+#undef EFX_MAE_MV_DESC\n+};\n+\n+/* Indices to this array are provided by efx_mae_field_id_t */\n+static const efx_mae_mv_desc_t __efx_mae_outer_rule_mv_desc_set[] = {\n+#define\tEFX_MAE_MV_DESC(_name, _endianness)\t\t\t\t\\\n+\t[EFX_MAE_FIELD_##_name] =\t\t\t\t\t\\\n+\t{\t\t\t\t\t\t\t\t\\\n+\t\tEFX_MAE_FIELD_ID_##_name,\t\t\t\t\\\n+\t\tMAE_ENC_FIELD_PAIRS_##_name##_LEN,\t\t\t\\\n+\t\tMAE_ENC_FIELD_PAIRS_##_name##_OFST,\t\t\t\\\n+\t\tMAE_ENC_FIELD_PAIRS_##_name##_MASK_LEN,\t\t\t\\\n+\t\tMAE_ENC_FIELD_PAIRS_##_name##_MASK_OFST,\t\t\\\n+\t\t_endianness\t\t\t\t\t\t\\\n+\t}\n+\n+\tEFX_MAE_MV_DESC(INGRESS_MPORT_SELECTOR, EFX_MAE_FIELD_LE),\n+\tEFX_MAE_MV_DESC(ENC_ETHER_TYPE_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_ETH_SADDR_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_ETH_DADDR_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_VLAN0_TCI_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_VLAN0_PROTO_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_VLAN1_TCI_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_VLAN1_PROTO_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_SRC_IP4_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_DST_IP4_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_IP_PROTO, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_IP_TOS, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_IP_TTL, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_SRC_IP6_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_DST_IP6_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_L4_SPORT_BE, EFX_MAE_FIELD_BE),\n+\tEFX_MAE_MV_DESC(ENC_L4_DPORT_BE, EFX_MAE_FIELD_BE),\n+\n #undef EFX_MAE_MV_DESC\n };\n \n@@ -470,6 +522,10 @@ efx_mae_match_spec_field_set(\n \t}\n \n \tswitch (spec->emms_type) {\n+\tcase EFX_MAE_RULE_OUTER:\n+\t\tdescp = &__efx_mae_outer_rule_mv_desc_set[field_id];\n+\t\tmvp = spec->emms_mask_value_pairs.outer;\n+\t\tbreak;\n \tcase EFX_MAE_RULE_ACTION:\n \t\tdescp = &__efx_mae_action_rule_mv_desc_set[field_id];\n \t\tmvp = spec->emms_mask_value_pairs.action;\n",
    "prefixes": [
        "v2",
        "56/62"
    ]
}