get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66690,
    "url": "https://patches.dpdk.org/api/patches/66690/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/259ecb84468740008ea1ecb5a407ad0bdb788d7d.1584348950.git.dekelp@mellanox.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<259ecb84468740008ea1ecb5a407ad0bdb788d7d.1584348950.git.dekelp@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/259ecb84468740008ea1ecb5a407ad0bdb788d7d.1584348950.git.dekelp@mellanox.com",
    "date": "2020-03-16T08:57:39",
    "name": "net/mlx5: fix CVLAN tag set in IP item translation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4633089d956df8b977504d47583e51b953b09b0b",
    "submitter": {
        "id": 1082,
        "url": "https://patches.dpdk.org/api/people/1082/?format=api",
        "name": "Dekel Peled",
        "email": "dekelp@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/259ecb84468740008ea1ecb5a407ad0bdb788d7d.1584348950.git.dekelp@mellanox.com/mbox/",
    "series": [
        {
            "id": 8922,
            "url": "https://patches.dpdk.org/api/series/8922/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8922",
            "date": "2020-03-16T08:57:39",
            "name": "net/mlx5: fix CVLAN tag set in IP item translation",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/8922/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/66690/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/66690/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 A4ABCA0559;\n\tMon, 16 Mar 2020 09:58:01 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 51FE21C02A;\n\tMon, 16 Mar 2020 09:58:01 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 194C11C026\n for <dev@dpdk.org>; Mon, 16 Mar 2020 09:58:00 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE2 (envelope-from\n dekelp@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 16 Mar 2020 10:57:57 +0200",
            "from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx\n [10.228.134.250])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 02G8vvcN003548;\n Mon, 16 Mar 2020 10:57:57 +0200"
        ],
        "From": "Dekel Peled <dekelp@mellanox.com>",
        "To": "matan@mellanox.com, viacheslavo@mellanox.com, rasland@mellanox.com",
        "Cc": "dev@dpdk.org, stable@dpdk.org",
        "Date": "Mon, 16 Mar 2020 10:57:39 +0200",
        "Message-Id": "\n <259ecb84468740008ea1ecb5a407ad0bdb788d7d.1584348950.git.dekelp@mellanox.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "Subject": "[dpdk-dev] [PATCH] net/mlx5: fix CVLAN tag set in IP item\n\ttranslation",
        "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": "Previous fix added, at the end of functions flow_dv_translate_item_ipv4()\nand flow_dv_translate_item_ipv6(), the setting of cvlan_tag mask.\nIn the case of unspecified item (item->spec == null) these functions\nreturn, and the new code section is not reached.\n\nThis patch moves the setting of cvlan_tag mask to be done before the\ncheck of item->spec, to make sure it is always executed.\n\nFixes: 797329d6c4a1 (\"net/mlx5: fix match on ethertype and CVLAN tag\")\nCc: stable@dpdk.org\n\nSigned-off-by: Dekel Peled <dekelp@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow_dv.c | 26 ++++++++++++++------------\n 1 file changed, 14 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c\nindex e2d6690..2090631 100644\n--- a/drivers/net/mlx5/mlx5_flow_dv.c\n+++ b/drivers/net/mlx5/mlx5_flow_dv.c\n@@ -5464,6 +5464,13 @@ struct field_modify_info modify_tcp[] = {\n \telse\n \t\tMLX5_SET(fte_match_set_lyr_2_4, headers_m, ip_version, 0x4);\n \tMLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_version, 4);\n+\t/*\n+\t * On outer header (which must contains L2), or inner header with L2,\n+\t * set cvlan_tag mask bit to mark this packet as untagged.\n+\t * This should be done even if item->spec is empty.\n+\t */\n+\tif (!inner || item_flags & MLX5_FLOW_LAYER_INNER_L2)\n+\t\tMLX5_SET(fte_match_set_lyr_2_4, headers_m, cvlan_tag, 1);\n \tif (!ipv4_v)\n \t\treturn;\n \tif (!ipv4_m)\n@@ -5495,12 +5502,6 @@ struct field_modify_info modify_tcp[] = {\n \t\t ipv4_m->hdr.time_to_live);\n \tMLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_ttl_hoplimit,\n \t\t ipv4_v->hdr.time_to_live & ipv4_m->hdr.time_to_live);\n-\t/*\n-\t * On outer header (which must contains L2), or inner header with L2,\n-\t * set cvlan_tag mask bit to mark this packet as untagged.\n-\t */\n-\tif (!inner || item_flags & MLX5_FLOW_LAYER_INNER_L2)\n-\t\tMLX5_SET(fte_match_set_lyr_2_4, headers_m, cvlan_tag, 1);\n }\n \n /**\n@@ -5565,6 +5566,13 @@ struct field_modify_info modify_tcp[] = {\n \telse\n \t\tMLX5_SET(fte_match_set_lyr_2_4, headers_m, ip_version, 0x6);\n \tMLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_version, 6);\n+\t/*\n+\t * On outer header (which must contains L2), or inner header with L2,\n+\t * set cvlan_tag mask bit to mark this packet as untagged.\n+\t * This should be done even if item->spec is empty.\n+\t */\n+\tif (!inner || item_flags & MLX5_FLOW_LAYER_INNER_L2)\n+\t\tMLX5_SET(fte_match_set_lyr_2_4, headers_m, cvlan_tag, 1);\n \tif (!ipv6_v)\n \t\treturn;\n \tif (!ipv6_m)\n@@ -5613,12 +5621,6 @@ struct field_modify_info modify_tcp[] = {\n \t\t ipv6_m->hdr.hop_limits);\n \tMLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_ttl_hoplimit,\n \t\t ipv6_v->hdr.hop_limits & ipv6_m->hdr.hop_limits);\n-\t/*\n-\t * On outer header (which must contains L2), or inner header with L2,\n-\t * set cvlan_tag mask bit to mark this packet as untagged.\n-\t */\n-\tif (!inner || item_flags & MLX5_FLOW_LAYER_INNER_L2)\n-\t\tMLX5_SET(fte_match_set_lyr_2_4, headers_m, cvlan_tag, 1);\n }\n \n /**\n",
    "prefixes": []
}