get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43870,
    "url": "http://patches.dpdk.org/api/patches/43870/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1535120736-785-3-git-send-email-alejandro.lucero@netronome.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": "<1535120736-785-3-git-send-email-alejandro.lucero@netronome.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1535120736-785-3-git-send-email-alejandro.lucero@netronome.com",
    "date": "2018-08-24T14:25:36",
    "name": "[v3,2/2] net/nfp: fix live MAC changes not supported",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "cef535d0a258203acc2ccd033d56734b6e804f14",
    "submitter": {
        "id": 270,
        "url": "http://patches.dpdk.org/api/people/270/?format=api",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.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/1535120736-785-3-git-send-email-alejandro.lucero@netronome.com/mbox/",
    "series": [
        {
            "id": 1049,
            "url": "http://patches.dpdk.org/api/series/1049/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1049",
            "date": "2018-08-24T14:25:34",
            "name": "support MAC changes when no live changes allowed",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1049/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43870/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43870/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 1A79E5F11;\n\tFri, 24 Aug 2018 16:26:33 +0200 (CEST)",
            "from netronome.com (host-79-78-33-110.static.as9105.net\n\t[79.78.33.110]) by dpdk.org (Postfix) with ESMTP id A7D724F9B;\n\tFri, 24 Aug 2018 16:26:27 +0200 (CEST)",
            "from netronome.com (localhost [127.0.0.1])\n\tby netronome.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id\n\tw7OEPduD000921; Fri, 24 Aug 2018 15:25:39 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w7OEPd62000920;\n\tFri, 24 Aug 2018 15:25:39 +0100"
        ],
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, ferruh.yigit@intel.com",
        "Date": "Fri, 24 Aug 2018 15:25:36 +0100",
        "Message-Id": "<1535120736-785-3-git-send-email-alejandro.lucero@netronome.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1535120736-785-1-git-send-email-alejandro.lucero@netronome.com>",
        "References": "<1535120736-785-1-git-send-email-alejandro.lucero@netronome.com>",
        "Subject": "[dpdk-dev] [PATCH v3 2/2] net/nfp: fix live MAC changes not\n\tsupported",
        "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": "Some NFP firmwares support live changes to the MAC address, but\nthis is not always true and the firmware advertises it accordingly.\n\nThis patch checks if firmware does not support live changes and\nsets RTE_ETH_DEV_NOLIVE_MAC_ADDR in that case.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n drivers/net/nfp/nfp_net.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c\nindex 6e5e305..ee743e9 100644\n--- a/drivers/net/nfp/nfp_net.c\n+++ b/drivers/net/nfp/nfp_net.c\n@@ -2886,6 +2886,9 @@ uint32_t nfp_net_txq_full(struct nfp_net_txq *txq)\n \tether_addr_copy((struct ether_addr *)hw->mac_addr,\n \t\t\t&eth_dev->data->mac_addrs[0]);\n \n+\tif (!(hw->cap & NFP_NET_CFG_CTRL_LIVE_ADDR))\n+\t\teth_dev->data->dev_flags |= RTE_ETH_DEV_NOLIVE_MAC_ADDR;\n+\n \tPMD_INIT_LOG(INFO, \"port %d VendorID=0x%x DeviceID=0x%x \"\n \t\t     \"mac=%02x:%02x:%02x:%02x:%02x:%02x\",\n \t\t     eth_dev->data->port_id, pci_dev->id.vendor_id,\n",
    "prefixes": [
        "v3",
        "2/2"
    ]
}