get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45536,
    "url": "http://patches.dpdk.org/api/patches/45536/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1538059845-35896-3-git-send-email-dekelp@mellanox.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": "<1538059845-35896-3-git-send-email-dekelp@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1538059845-35896-3-git-send-email-dekelp@mellanox.com",
    "date": "2018-09-27T14:50:43",
    "name": "[2/4] net/mlx5: add definitions for DV encap and decap",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "745d920f1927c1c0367fcd0dc8d873d460bef309",
    "submitter": {
        "id": 1082,
        "url": "http://patches.dpdk.org/api/people/1082/?format=api",
        "name": "Dekel Peled",
        "email": "dekelp@mellanox.com"
    },
    "delegate": {
        "id": 6624,
        "url": "http://patches.dpdk.org/api/users/6624/?format=api",
        "username": "shahafs",
        "first_name": "Shahaf",
        "last_name": "Shuler",
        "email": "shahafs@mellanox.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1538059845-35896-3-git-send-email-dekelp@mellanox.com/mbox/",
    "series": [
        {
            "id": 1555,
            "url": "http://patches.dpdk.org/api/series/1555/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1555",
            "date": "2018-09-27T14:50:41",
            "name": "support DV encap and decap actions",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1555/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/45536/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/45536/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9DA1D1B4F5;\n\tThu, 27 Sep 2018 16:52:23 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 811431B4D3\n\tfor <dev@dpdk.org>; Thu, 27 Sep 2018 16:52:15 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tdekelp@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 27 Sep 2018 16:56:43 +0200",
            "from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx\n\t[10.128.130.87])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w8REq7gK013802;\n\tThu, 27 Sep 2018 17:52:10 +0300"
        ],
        "From": "Dekel Peled <dekelp@mellanox.com>",
        "To": "dev@dpdk.org, shahafs@mellanox.com, yskoh@mellanox.com",
        "Cc": "orika@mellanox.com",
        "Date": "Thu, 27 Sep 2018 17:50:43 +0300",
        "Message-Id": "<1538059845-35896-3-git-send-email-dekelp@mellanox.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "In-Reply-To": "<1538059845-35896-1-git-send-email-dekelp@mellanox.com>",
        "References": "<1538059845-35896-1-git-send-email-dekelp@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH 2/4] net/mlx5: add definitions for DV encap and\n\tdecap",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch add the required definitions for DV encap/decap actions.\nIt also adds usage of the new actions definition in validation\nfunction of existing drop operation.\n\nSigned-off-by: Dekel Peled <dekelp@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c | 10 ++++++++++\n drivers/net/mlx5/mlx5_flow.h |  7 +++++++\n 2 files changed, 17 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex 79a06df..fed0d29 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -768,6 +768,16 @@ uint32_t mlx5_flow_adjust_priority(struct rte_eth_dev *dev, int32_t priority,\n \t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION, NULL,\n \t\t\t\t\t  \"can't have 2 fate actions in\"\n \t\t\t\t\t  \" same flow\");\n+\tif (action_flags & (MLX5_ACTION_TUNNEL_DECAP |\n+\t\t\t    MLX5_ACTION_TUNNEL_DECAP_L3 |\n+\t\t\t    MLX5_ACTION_TUNNEL_ENCAP |\n+\t\t\t    MLX5_ACTION_TUNNEL_ENCAP_L3))\n+\t\treturn rte_flow_error_set(error,\n+\t\t\t\t\t  ENOTSUP,\n+\t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ACTION,\n+\t\t\t\t\t  NULL,\n+\t\t\t\t\t  \"can't encap or decap and drop in\"\n+\t\t\t\t\t  \" same flow\");\n \tif (attr->egress)\n \t\treturn rte_flow_error_set(error, ENOTSUP,\n \t\t\t\t\t  RTE_FLOW_ERROR_TYPE_ATTR_EGRESS,\ndiff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h\nindex a353d07..4a4f923 100644\n--- a/drivers/net/mlx5/mlx5_flow.h\n+++ b/drivers/net/mlx5/mlx5_flow.h\n@@ -90,6 +90,10 @@\n #define MLX5_ACTION_OF_PUSH_VLAN (1u << 8)\n #define MLX5_ACTION_OF_SET_VLAN_VID (1u << 9)\n #define MLX5_ACTION_OF_SET_VLAN_PCP (1u << 10)\n+#define MLX5_ACTION_TUNNEL_ENCAP (1u << 11)\n+#define MLX5_ACTION_TUNNEL_DECAP (1u << 12)\n+#define MLX5_ACTION_TUNNEL_ENCAP_L3 (1u << 13)\n+#define MLX5_ACTION_TUNNEL_DECAP_L3 (1u << 14)\n \n /* possible L3 layers protocols filtering. */\n #define MLX5_IP_PROTOCOL_TCP 6\n@@ -175,6 +179,9 @@ struct mlx5_flow_dv {\n #ifdef HAVE_IBV_FLOW_DV_SUPPORT\n \tstruct mlx5dv_flow_action_attr actions[MLX5_DV_MAX_NUMBER_OF_ACTIONS];\n \t/**< Action list. */\n+\n+\tstruct ibv_flow_action *encap_verb; /**< Verbs object of encap. */\n+\tstruct ibv_flow_action *decap_verb; /**< Verbs object of decap. */\n #endif\n \tint actions_n; /**< number of actions. */\n };\n",
    "prefixes": [
        "2/4"
    ]
}