get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45517,
    "url": "https://patches.dpdk.org/api/patches/45517/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1538047596-23954-1-git-send-email-alejandro.lucero@netronome.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": "<1538047596-23954-1-git-send-email-alejandro.lucero@netronome.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1538047596-23954-1-git-send-email-alejandro.lucero@netronome.com",
    "date": "2018-09-27T11:26:36",
    "name": "ethdev: add field for device data per process",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "94405d2be33ef7acf14f81ab0225bd4cbcfb5876",
    "submitter": {
        "id": 270,
        "url": "https://patches.dpdk.org/api/people/270/?format=api",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1538047596-23954-1-git-send-email-alejandro.lucero@netronome.com/mbox/",
    "series": [
        {
            "id": 1548,
            "url": "https://patches.dpdk.org/api/series/1548/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1548",
            "date": "2018-09-27T11:26:36",
            "name": "ethdev: add field for device data per process",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/1548/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45517/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/45517/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 28BDE1B3A3;\n\tThu, 27 Sep 2018 13:27:52 +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 E56581B20B\n\tfor <dev@dpdk.org>; Thu, 27 Sep 2018 13:27:50 +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\tw8RBQarc023993 for <dev@dpdk.org>; Thu, 27 Sep 2018 12:26:36 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w8RBQaul023992\n\tfor dev@dpdk.org; Thu, 27 Sep 2018 12:26:36 +0100"
        ],
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 27 Sep 2018 12:26:36 +0100",
        "Message-Id": "<1538047596-23954-1-git-send-email-alejandro.lucero@netronome.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "Subject": "[dpdk-dev] [PATCH] ethdev: add field for device data per process",
        "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": "Primary and secondary processes share a per-device private data. With\ncurrent design it is not possible to have data per-device per-process.\nThis is required for handling properly the CPP interface inside the NFP\nPMD with multiprocess support.\n\nThere is also at least another PMD driver, tap, with similar\nrequirements for per-process device data.\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n lib/librte_ethdev/rte_ethdev_core.h | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev_core.h b/lib/librte_ethdev/rte_ethdev_core.h\nindex 33d12b3..9f29889 100644\n--- a/lib/librte_ethdev/rte_ethdev_core.h\n+++ b/lib/librte_ethdev/rte_ethdev_core.h\n@@ -539,7 +539,13 @@ struct rte_eth_dev {\n \teth_rx_burst_t rx_pkt_burst; /**< Pointer to PMD receive function. */\n \teth_tx_burst_t tx_pkt_burst; /**< Pointer to PMD transmit function. */\n \teth_tx_prep_t tx_pkt_prepare; /**< Pointer to PMD transmit prepare function. */\n-\tstruct rte_eth_dev_data *data;  /**< Pointer to device data */\n+\t/**\n+\t * Next two fields are per-device data but *data is shared between\n+\t * primary and secondary processes and *process_private is per-process\n+\t * private.\n+\t */\n+\tstruct rte_eth_dev_data *data;  /**< Pointer to device data. */\n+\tvoid *process_private; /**< Pointer to per-process device data. */\n \tconst struct eth_dev_ops *dev_ops; /**< Functions exported by PMD */\n \tstruct rte_device *device; /**< Backing device */\n \tstruct rte_intr_handle *intr_handle; /**< Device interrupt handle */\n",
    "prefixes": []
}