get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64786,
    "url": "http://patchwork.dpdk.org/api/patches/64786/",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1579178697-31777-2-git-send-email-bernard.iremonger@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/",
        "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": "<1579178697-31777-2-git-send-email-bernard.iremonger@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1579178697-31777-2-git-send-email-bernard.iremonger@intel.com",
    "date": "2020-01-16T12:44:48",
    "name": "[v7,01/10] app/testpmd: parse flow command line for ESP",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e354ccda7b716db4aa2f7fd479a601550f30fd28",
    "submitter": {
        "id": 91,
        "url": "http://patchwork.dpdk.org/api/people/91/",
        "name": "Iremonger, Bernard",
        "email": "bernard.iremonger@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1579178697-31777-2-git-send-email-bernard.iremonger@intel.com/mbox/",
    "series": [
        {
            "id": 8162,
            "url": "http://patchwork.dpdk.org/api/series/8162/",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=8162",
            "date": "2020-01-16T12:44:48",
            "name": "[v7,01/10] app/testpmd: parse flow command line for ESP",
            "version": 7,
            "mbox": "http://patchwork.dpdk.org/series/8162/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/64786/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/64786/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 724D6A0352;\n\tThu, 16 Jan 2020 13:45:12 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 13C0B1D154;\n\tThu, 16 Jan 2020 13:45:08 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 8E72C1C43C\n for <dev@dpdk.org>; Thu, 16 Jan 2020 13:45:04 +0100 (CET)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 16 Jan 2020 04:45:04 -0800",
            "from sivswdev08.ir.intel.com (HELO localhost.localdomain)\n ([10.237.217.47])\n by orsmga006.jf.intel.com with ESMTP; 16 Jan 2020 04:45:02 -0800"
        ],
        "X-Mailman-Version": "2.1.15",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org, beilei.xing@intel.com, qi.z.zhang@intel.com,\n declan.doherty@intel.com",
        "From": "Bernard Iremonger <bernard.iremonger@intel.com>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "References": "<1579103627-31985-1-git-send-email-bernard.iremonger@intel.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Amp-File-Uploaded": "False",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Message-Id": "<1579178697-31777-2-git-send-email-bernard.iremonger@intel.com>",
        "Precedence": "list",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,326,1574150400\"; d=\"scan'208\";a=\"226641546\"",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "Subject": "[dpdk-dev] [PATCH v7 01/10] app/testpmd: parse flow command line\n\tfor ESP",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-ExtLoop1": "1",
        "In-Reply-To": "<1579103627-31985-1-git-send-email-bernard.iremonger@intel.com>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Cc": "konstantin.ananyev@intel.com, stephen1.byrne@intel.com,\n helin.zhang@intel.com, Bernard Iremonger <bernard.iremonger@intel.com>",
        "Date": "Thu, 16 Jan 2020 12:44:48 +0000"
    },
    "content": "add ITEM_ESP\nadd ITEM_ESP_SPI\nupdate release notes for testpmd changes\nadd sample ESP rules in testpmd guide\n\nSigned-off-by: Bernard Iremonger <bernard.iremonger@intel.com>\nAcked-by: Ori Kam <orika@mellanox.com>\n---\n app/test-pmd/cmdline_flow.c                 | 34 ++++++++++++++++++++++++++---\n doc/guides/rel_notes/release_20_02.rst      |  4 ++++\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14 ++++++++++++\n 3 files changed, 49 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 99dade7..9c6edb8 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -213,6 +213,8 @@ enum index {\n \tITEM_TAG,\n \tITEM_TAG_DATA,\n \tITEM_TAG_INDEX,\n+\tITEM_ESP,\n+\tITEM_ESP_SPI,\n \n \t/* Validate/create actions. */\n \tACTIONS,\n@@ -746,6 +748,7 @@ static const enum index next_item[] = {\n \tITEM_PPPOE_PROTO_ID,\n \tITEM_HIGIG2,\n \tITEM_TAG,\n+\tITEM_ESP,\n \tEND_SET,\n \tZERO,\n };\n@@ -1017,6 +1020,12 @@ static const enum index item_higig2[] = {\n \tZERO,\n };\n \n+static const enum index item_esp[] = {\n+\tITEM_ESP_SPI,\n+\tITEM_NEXT,\n+\tZERO,\n+};\n+\n static const enum index next_set_raw[] = {\n \tSET_RAW_INDEX,\n \tITEM_ETH,\n@@ -2593,6 +2602,20 @@ static const struct token token_list[] = {\n \t\t\t     NEXT_ENTRY(ITEM_PARAM_IS)),\n \t\t.args = ARGS(ARGS_ENTRY(struct rte_flow_item_tag, index)),\n \t},\n+\t[ITEM_ESP] = {\n+\t\t.name = \"esp\",\n+\t\t.help = \"match ESP header\",\n+\t\t.priv = PRIV_ITEM(ESP, sizeof(struct rte_flow_item_esp)),\n+\t\t.next = NEXT(item_esp),\n+\t\t.call = parse_vc,\n+\t},\n+\t[ITEM_ESP_SPI] = {\n+\t\t.name = \"spi\",\n+\t\t.help = \"security policy index\",\n+\t\t.next = NEXT(item_esp, NEXT_ENTRY(UNSIGNED), item_param),\n+\t\t.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_esp,\n+\t\t\t\thdr.spi)),\n+\t},\n \t/* Validate/create actions. */\n \t[ACTIONS] = {\n \t\t.name = \"actions\",\n@@ -6230,14 +6253,15 @@ flow_item_default_mask(const struct rte_flow_item *item)\n \tcase RTE_FLOW_ITEM_TYPE_GTP:\n \t\tmask = &rte_flow_item_gtp_mask;\n \t\tbreak;\n-\tcase RTE_FLOW_ITEM_TYPE_ESP:\n-\t\tmask = &rte_flow_item_esp_mask;\n-\t\tbreak;\n \tcase RTE_FLOW_ITEM_TYPE_GTP_PSC:\n \t\tmask = &rte_flow_item_gtp_psc_mask;\n \t\tbreak;\n \tcase RTE_FLOW_ITEM_TYPE_PPPOE_PROTO_ID:\n \t\tmask = &rte_flow_item_pppoe_proto_id_mask;\n+\t\tbreak;\n+\tcase RTE_FLOW_ITEM_TYPE_ESP:\n+\t\tmask = &rte_flow_item_esp_mask;\n+\t\tbreak;\n \tdefault:\n \t\tbreak;\n \t}\n@@ -6327,6 +6351,10 @@ cmd_set_raw_parsed(const struct buffer *in)\n \t\tcase RTE_FLOW_ITEM_TYPE_GENEVE:\n \t\t\tsize = sizeof(struct rte_flow_item_geneve);\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ITEM_TYPE_ESP:\n+\t\t\tsize = sizeof(struct rte_flow_item_esp);\n+\t\t\tproto = 0x32;\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\tprintf(\"Error - Not supported item\\n\");\n \t\t\t*total_size = 0;\ndiff --git a/doc/guides/rel_notes/release_20_02.rst b/doc/guides/rel_notes/release_20_02.rst\nindex 0eaa45a..057b7ee 100644\n--- a/doc/guides/rel_notes/release_20_02.rst\n+++ b/doc/guides/rel_notes/release_20_02.rst\n@@ -56,6 +56,10 @@ New Features\n      Also, make sure to start the actual text at the margin.\n      =========================================================\n \n+* **Updated testpmd to support ESP flows.**\n+\n+  Added support for ESP rte_flow patterns to the testpmd application.\n+\n \n Removed Items\n -------------\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex 73ef0b4..fe84fa4 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -4751,6 +4751,20 @@ Decapsulating VxLAN::\n  testpmd> flow create 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 /\n         end actions raw_decap / queue index 0 / end\n \n+Sample ESP rules\n+~~~~~~~~~~~~~~~~\n+\n+ESP rules can be created by the following commands::\n+\n+ testpmd> flow create 0 ingress pattern eth / ipv4 / esp spi is 1 / end actions\n+        queue index 3 / end\n+ testpmd> flow create 0 ingress pattern eth / ipv4 / udp / esp spi is 1 / end\n+        actions queue index 3 / end\n+ testpmd> flow create 0 ingress pattern eth / ipv6 / esp spi is 1 / end actions\n+        queue index 3 / end\n+ testpmd> flow create 0 ingress pattern eth / ipv6 / udp / esp spi is 1 / end\n+        actions queue index 3 / end\n+\n BPF Functions\n --------------\n \n",
    "prefixes": [
        "v7",
        "01/10"
    ]
}