get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77061,
    "url": "http://patches.dpdk.org/api/patches/77061/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200909140006.23788-7-hyonkim@cisco.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": "<20200909140006.23788-7-hyonkim@cisco.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200909140006.23788-7-hyonkim@cisco.com",
    "date": "2020-09-09T14:00:06",
    "name": "[6/6] net/enic: support VXLAN decap action combined with VLAN pop",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c4c314d9f9305e40484cd970c2ad2c6e77e6a7ee",
    "submitter": {
        "id": 948,
        "url": "http://patches.dpdk.org/api/people/948/?format=api",
        "name": "Hyong Youb Kim (hyonkim)",
        "email": "hyonkim@cisco.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/20200909140006.23788-7-hyonkim@cisco.com/mbox/",
    "series": [
        {
            "id": 12058,
            "url": "http://patches.dpdk.org/api/series/12058/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12058",
            "date": "2020-09-09T14:00:00",
            "name": "net/enic: minor updates to flow implementation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12058/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77061/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/77061/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 16783A04B5;\n\tWed,  9 Sep 2020 16:02:31 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B77211C129;\n\tWed,  9 Sep 2020 16:02:19 +0200 (CEST)",
            "from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90])\n by dpdk.org (Postfix) with ESMTP id 09AE11C0B4\n for <dev@dpdk.org>; Wed,  9 Sep 2020 16:02:17 +0200 (CEST)",
            "from alln-core-6.cisco.com ([173.36.13.139])\n by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA;\n 09 Sep 2020 14:02:17 +0000",
            "from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48])\n by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTP id 089E2H1q013188;\n Wed, 9 Sep 2020 14:02:17 GMT",
            "by cisco.com (Postfix, from userid 508933)\n id 0FB2A20F2005; Wed,  9 Sep 2020 07:02:17 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=cisco.com; i=@cisco.com; l=2735; q=dns/txt; s=iport;\n t=1599660138; x=1600869738;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=LcYQNBXTpbyB3MfDOLX1u/O2CctBedHB1Q7LVlYLlwQ=;\n b=fvO1g/FS1oQy/VG1Jaja3PbUMr2J7h2LYsTo2KyIxLKtNAlMz3iQ7VLa\n BJDA8FpzUsK64g/nn1Xohjv1QQ8gP2g15wVYGsGASg/SluHGzHflLrj/Q\n d3jjY+Lk/PHc4E8b3RSb11BJAuqlf0Cj87S4O2o8QPuJyPhGhPyFo2R3O Y=;",
        "X-IronPort-AV": "E=Sophos;i=\"5.76,409,1592870400\"; d=\"scan'208\";a=\"530078413\"",
        "From": "Hyong Youb Kim <hyonkim@cisco.com>",
        "To": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "Cc": "dev@dpdk.org, Hyong Youb Kim <hyonkim@cisco.com>,\n John Daley <johndale@cisco.com>",
        "Date": "Wed,  9 Sep 2020 07:00:06 -0700",
        "Message-Id": "<20200909140006.23788-7-hyonkim@cisco.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20200909140006.23788-1-hyonkim@cisco.com>",
        "References": "<20200909140006.23788-1-hyonkim@cisco.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Outbound-SMTP-Client": "10.193.184.48, savbu-usnic-a.cisco.com",
        "X-Outbound-Node": "alln-core-6.cisco.com",
        "Subject": "[dpdk-dev] [PATCH 6/6] net/enic: support VXLAN decap action\n\tcombined with VLAN pop",
        "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": "Flow Manager (flowman) provides DECAP_STRIP operation which\ndecapsulates VXLAN header and then removes VLAN header from the inner\npacket. Use this operation to support vxlan_decap followed by\nof_pop_vlan.\n\nSigned-off-by: Hyong Youb Kim <hyonkim@cisco.com>\nReviewed-by: John Daley <johndale@cisco.com>\n---\n doc/guides/rel_notes/release_20_11.rst |  1 +\n drivers/net/enic/enic_fm_flow.c        | 30 +++++++++++++++++++++++++-\n 2 files changed, 30 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst\nindex 6a7e7d666..4767348d3 100644\n--- a/doc/guides/rel_notes/release_20_11.rst\n+++ b/doc/guides/rel_notes/release_20_11.rst\n@@ -140,3 +140,4 @@ Tested Platforms\n   * Added support for VF representors with single-queue Tx/Rx and flow API\n   * Added support for egress PORT_ID action\n   * Added support for non-zero priorities for group 0 flows\n+  * Added support for VXLAN decap combined with VLAN pop\ndiff --git a/drivers/net/enic/enic_fm_flow.c b/drivers/net/enic/enic_fm_flow.c\nindex 7eec8e6eb..ef4705d47 100644\n--- a/drivers/net/enic/enic_fm_flow.c\n+++ b/drivers/net/enic/enic_fm_flow.c\n@@ -923,6 +923,20 @@ enic_fm_append_action_op(struct enic_flowman *fm,\n \treturn 0;\n }\n \n+static struct fm_action_op *\n+find_prev_action_op(struct enic_flowman *fm, uint32_t opcode)\n+{\n+\tstruct fm_action_op *op;\n+\tint i;\n+\n+\tfor (i = 0; i < fm->action_op_count; i++) {\n+\t\top = &fm->action.fma_action_ops[i];\n+\t\tif (op->fa_op == opcode)\n+\t\t\treturn op;\n+\t}\n+\treturn NULL;\n+}\n+\n /* NIC requires that 1st steer appear before decap.\n  * Correct example: steer, decap, steer, steer, ...\n  */\n@@ -938,7 +952,8 @@ enic_fm_reorder_action_op(struct enic_flowman *fm)\n \tsteer = NULL;\n \tdecap = NULL;\n \twhile (op->fa_op != FMOP_END) {\n-\t\tif (!decap && op->fa_op == FMOP_DECAP_NOSTRIP)\n+\t\tif (!decap && (op->fa_op == FMOP_DECAP_NOSTRIP ||\n+\t\t\t       op->fa_op == FMOP_DECAP_STRIP))\n \t\t\tdecap = op;\n \t\telse if (!steer && op->fa_op == FMOP_RQ_STEER)\n \t\t\tsteer = op;\n@@ -1471,6 +1486,19 @@ enic_fm_copy_action(struct enic_flowman *fm,\n \t\t\tbreak;\n \t\t}\n \t\tcase RTE_FLOW_ACTION_TYPE_OF_POP_VLAN: {\n+\t\t\tstruct fm_action_op *decap;\n+\n+\t\t\t/*\n+\t\t\t * If decap-nostrip appears before pop vlan, this pop\n+\t\t\t * applies to the inner packet vlan. Turn it into\n+\t\t\t * decap-strip.\n+\t\t\t */\n+\t\t\tdecap = find_prev_action_op(fm, FMOP_DECAP_NOSTRIP);\n+\t\t\tif (decap) {\n+\t\t\t\tENICPMD_LOG(DEBUG, \"pop-vlan inner: decap-nostrip => decap-strip\");\n+\t\t\t\tdecap->fa_op = FMOP_DECAP_STRIP;\n+\t\t\t\tbreak;\n+\t\t\t}\n \t\t\tmemset(&fm_op, 0, sizeof(fm_op));\n \t\t\tfm_op.fa_op = FMOP_POP_VLAN;\n \t\t\tret = enic_fm_append_action_op(fm, &fm_op, error);\n",
    "prefixes": [
        "6/6"
    ]
}