get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28322,
    "url": "http://patches.dpdk.org/api/patches/28322/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20170904114351.104617-1-xuemingl@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": "<20170904114351.104617-1-xuemingl@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20170904114351.104617-1-xuemingl@mellanox.com",
    "date": "2017-09-04T11:43:51",
    "name": "[dpdk-dev] net/mlx5: fix tunnel offload detection",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "06e9576f02d96e36ca20519ddaa8ccc920d5526c",
    "submitter": {
        "id": 814,
        "url": "http://patches.dpdk.org/api/people/814/?format=api",
        "name": "Xueming Li",
        "email": "xuemingl@mellanox.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/20170904114351.104617-1-xuemingl@mellanox.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/28322/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/28322/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 69FF87CCD;\n\tMon,  4 Sep 2017 13:46:47 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id E45687CA9\n\tfor <dev@dpdk.org>; Mon,  4 Sep 2017 13:46:45 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\txuemingl@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 4 Sep 2017 14:46:44 +0300",
            "from dev-r630-06.mtbc.labs.mlnx (dev-r630-06.mtbc.labs.mlnx\n\t[10.12.205.222])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v84Bkh33010565;\n\tMon, 4 Sep 2017 14:46:44 +0300",
            "from dev-r630-06.mtbc.labs.mlnx (localhost [127.0.0.1])\n\tby dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id\n\tv84BkgVS104701; Mon, 4 Sep 2017 19:46:42 +0800",
            "(from xuemingl@localhost)\n\tby dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id\n\tv84Bkcof104700; Mon, 4 Sep 2017 19:46:38 +0800"
        ],
        "From": "Xueming Li <xuemingl@mellanox.com>",
        "To": "Nelio Laranjeiro <nelio.laranjeiro@6wind.com>,\n\tAdrien Mazarguil <adrien.mazarguil@6wind.com>",
        "Cc": "Xueming Li <xuemingl@mellanox.com>, dev@dpdk.org",
        "Date": "Mon,  4 Sep 2017 19:43:51 +0800",
        "Message-Id": "<20170904114351.104617-1-xuemingl@mellanox.com>",
        "X-Mailer": "git-send-email 2.13.3",
        "Subject": "[dpdk-dev] [PATCH] net/mlx5: fix tunnel offload detection",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "PMD driver got random tunnel_en value on ConnextX-4LX NIC, depends on\ncompile optimization level. The variable was not initialized and\ndetection logic was absent.\n\nFixes: 578ff15e (\"net/mlx5: add hardware checksum offload for tunnel\npackets\")\n\nSigned-off-by: Xueming Li <xuemingl@mellanox.com>\nAcked-by: Shahaf Shuler <shahafs@mellanox.com>\n---\n drivers/net/mlx5/mlx5.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex d7968f5..084df88 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -445,7 +445,7 @@ struct mlx5_args {\n \tstruct ibv_device_attr device_attr;\n \tunsigned int sriov;\n \tunsigned int mps;\n-\tunsigned int tunnel_en;\n+\tunsigned int tunnel_en = 0;\n \tint idx;\n \tint i;\n \n@@ -503,6 +503,7 @@ struct mlx5_args {\n \t\t\tmps = MLX5_MPW_DISABLED;\n \t\t\tbreak;\n \t\tcase PCI_DEVICE_ID_MELLANOX_CONNECTX4LX:\n+\t\t\ttunnel_en = 1;\n \t\t\tmps = MLX5_MPW;\n \t\t\tbreak;\n \t\tcase PCI_DEVICE_ID_MELLANOX_CONNECTX5:\n",
    "prefixes": [
        "dpdk-dev"
    ]
}