get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42311,
    "url": "http://patches.dpdk.org/api/patches/42311/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180705083934.5535-11-adrien.mazarguil@6wind.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": "<20180705083934.5535-11-adrien.mazarguil@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180705083934.5535-11-adrien.mazarguil@6wind.com",
    "date": "2018-07-05T08:45:43",
    "name": "[v4,10/10] net/mlx5: support negative identifiers for port representors",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0598268b36acae568418741db400353cb367f82b",
    "submitter": {
        "id": 165,
        "url": "http://patches.dpdk.org/api/people/165/?format=api",
        "name": "Adrien Mazarguil",
        "email": "adrien.mazarguil@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180705083934.5535-11-adrien.mazarguil@6wind.com/mbox/",
    "series": [
        {
            "id": 413,
            "url": "http://patches.dpdk.org/api/series/413/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=413",
            "date": "2018-07-05T08:45:22",
            "name": "net/mlx5: add port representor support",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/413/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42311/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42311/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 48C441C3B5;\n\tThu,  5 Jul 2018 10:46:02 +0200 (CEST)",
            "from mail-wm0-f68.google.com (mail-wm0-f68.google.com\n\t[74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 463361C3AD\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 10:46:00 +0200 (CEST)",
            "by mail-wm0-f68.google.com with SMTP id p11-v6so9431718wmc.4\n\tfor <dev@dpdk.org>; Thu, 05 Jul 2018 01:46:00 -0700 (PDT)",
            "from 6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\t24-v6sm14879448wrz.94.2018.07.05.01.45.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 05 Jul 2018 01:45:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to;\n\tbh=AtLQ1t/HSGgaM2vxggtceXSTF01jOlclzYI1rcVg0bU=;\n\tb=yN+xLqqCMVVLa1WZNpHV/7EyVX4ym/UHz/vRxcL1/FMUVyPvNRIwOD2JxWLuX4Ogoj\n\t5VzIq6U+doclOPCUigHw4CFK+eogQ0hQE70bP/OB31TKcGREa0u+KsxsmTdFLi1qaDHF\n\t34dg7fSwPBMBo9bvWAuzaclxRrbg0WidJAdrlz03G91gBOTVLnUGekRztnxPzc9UNjdR\n\tZFJjCxvt09AWL0Tr6aMzRPHZMME8NzPub3+iIuRPxQArt6BC0Hj7ztdMDEUgYd5cihJy\n\thBP1PtEKik2XTLzojjP7DLJsW1DQ1ZUfqkM20qWPNVbMk5UOHIvQLrowp2nTvYHOyW8b\n\t4dlg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to;\n\tbh=AtLQ1t/HSGgaM2vxggtceXSTF01jOlclzYI1rcVg0bU=;\n\tb=IZznycbuFwbDveZKOO8NeluBrlqZoJOEVlw1CaSY54id2y+HyKrZ+yyqvU60i2i50B\n\tyLCzqecjiWFK2+2a3pOf6YzNs8FftO2QFXXgzl5nwKMrt6yrYCRy36GsHptbLW3PZgRm\n\tBhmuRCj2SgBtNVAXEcXf158NkNkekmwn6pqu0m4aVvjDUygUtAI3S81IF3daLNJvXqmG\n\t86+z7wfbHUG4f6GhFYCDPeybAOgBd7xVWOMf7iwZc8JSfEDh4dGLFX6GjKnn/GKcOuEJ\n\t11+nt1o6qcHWPecRgQu0uQd9IMbSvPg5PBs2iePxxJtxIIkPXZC4ltDhFvf1pCtk5Vax\n\tW7kw==",
        "X-Gm-Message-State": "APt69E2nPX/9gbfPxHWv+hRtBa3tjHctGSuX7XDXhZvmJ/w2r/9+yoNJ\n\tUAoxy/vwazMfFEPCSmh2PForZQ==",
        "X-Google-Smtp-Source": "AAOMgpcdr/FdX6ulxwZBsou/08yiVD8WGN+SYPkVarapA6RGYVK8zxI2ULL07hGAitCK9DVMJwD3GQ==",
        "X-Received": "by 2002:a1c:c241:: with SMTP id\n\ts62-v6mr3713859wmf.146.1530780360109; \n\tThu, 05 Jul 2018 01:46:00 -0700 (PDT)",
        "Date": "Thu, 5 Jul 2018 10:45:43 +0200",
        "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "To": "Shahaf Shuler <shahafs@mellanox.com>",
        "Cc": "dev@dpdk.org",
        "Message-ID": "<20180705083934.5535-11-adrien.mazarguil@6wind.com>",
        "References": "<20180704172322.22571-1-adrien.mazarguil@6wind.com>\n\t<20180705083934.5535-1-adrien.mazarguil@6wind.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "In-Reply-To": "<20180705083934.5535-1-adrien.mazarguil@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "Subject": "[dpdk-dev] [PATCH v4 10/10] net/mlx5: support negative identifiers\n\tfor port representors",
        "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 brings support for BlueField representors.\n\nSigned-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>\nCc: Shahaf Shuler <shahafs@mellanox.com>\n--\nv3 changes:\n\n- This patch was not present in prior revisions.\n---\n drivers/net/mlx5/mlx5.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex 12a77afa8..df7f39844 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -1330,6 +1330,14 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t\t\tmemset(&list[i].info, 0, sizeof(list[i].info));\n \t\t\tcontinue;\n \t\t}\n+\t\t/*\n+\t\t * Port representors not associated with any VFs (e.g. on\n+\t\t * BlueField devices) report -1 as a port identifier.\n+\t\t * Quietly set it to zero since DPDK only supports positive\n+\t\t * values.\n+\t\t */\n+\t\tif (list[i].info.representor && list[i].info.port_name == -1)\n+\t\t\tlist[i].info.port_name = 0;\n \t}\n \tif (nl_rdma >= 0)\n \t\tclose(nl_rdma);\n",
    "prefixes": [
        "v4",
        "10/10"
    ]
}