get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17199,
    "url": "https://patches.dpdk.org/api/patches/17199/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1479929912-32079-3-git-send-email-jblunck@infradead.org/",
    "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": "<1479929912-32079-3-git-send-email-jblunck@infradead.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1479929912-32079-3-git-send-email-jblunck@infradead.org",
    "date": "2016-11-23T19:38:31",
    "name": "[dpdk-dev,3/4] ethdev: Add DPDK internal _rte_eth_dev_reset()",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fcbf18a740e5c2621df557954e430678d8c9e558",
    "submitter": {
        "id": 249,
        "url": "https://patches.dpdk.org/api/people/249/?format=api",
        "name": "Jan Blunck",
        "email": "jblunck@infradead.org"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1479929912-32079-3-git-send-email-jblunck@infradead.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/17199/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/17199/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 532BD58CB;\n\tWed, 23 Nov 2016 20:40:26 +0100 (CET)",
            "from mail-wm0-f67.google.com (mail-wm0-f67.google.com\n\t[74.125.82.67]) by dpdk.org (Postfix) with ESMTP id E27BF5598\n\tfor <dev@dpdk.org>; Wed, 23 Nov 2016 20:40:04 +0100 (CET)",
            "by mail-wm0-f67.google.com with SMTP id a20so2971772wme.2\n\tfor <dev@dpdk.org>; Wed, 23 Nov 2016 11:40:04 -0800 (PST)",
            "from weierstrass.local.net ([91.200.110.70])\n\tby smtp.gmail.com with ESMTPSA id\n\tg184sm4339684wme.23.2016.11.23.11.40.03\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 23 Nov 2016 11:40:03 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=TXUG6Eqn7tnxnLTFAeeoSrG1JpfGSVbgO7PcMj7Wo84=;\n\tb=Jf+PDcX0G0UkedhMBL57B9hUvrFzkZLNDt7vF++PZKCgckBq3nDonz6lzGyKslIrJo\n\tng9hUatzNKBn4eBVArC2ZVxAbno7WhEfKyEAUUDCoaapSSytKpZArZgPb7KLidrmrGNQ\n\t5qEE3+dnKD8sOFUmS1tcZfPie2JKlo8V/WMCauAVut7g6kPS0CXxmbwiXonFMKzdDr1j\n\t3ymlq1LWlcl6c/TIfavMUMtBH87oNunnVcBcBhIqO3GMhsWLAiFc9uCoE0BAMMtrnAPC\n\twFKKgydnYxr291+TfF1PWMaJtwfoMWUx5ywNzi1ZJYUatbNJqo7O4LWOvD83yguYJQ0W\n\t0E8w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=TXUG6Eqn7tnxnLTFAeeoSrG1JpfGSVbgO7PcMj7Wo84=;\n\tb=k/PpJtG2vmf4D4rH1l+DJKR32fb7NdRldjBR6ZrqzI2Ov+tqBGZbbnSDXDEWBU4KFq\n\tmcg8a9y/wDrjkV4lDc/xjZpm+oEOk80EfXpxUfovROKpuimsMOMimigc/YAG4NDZZeJU\n\tp6x7s2F93uCdkN7pY7N+BYhl9lTEVKEE2R7cRQOsauQAj3gq3bcqNSWVNbie9NzuzpcV\n\tKiIQveK0SUB5O8f40Li9O7YX10rFY8oYqg3a2vA/P8QWs87ydCg1FfJmMpCs2J6wMbI5\n\tPwQ6bck9crE1MO0+paqOd/uiGX5EWO/RdXjAuHUaHcQ2KnLXtgz7TNo/EAjZYI65YXbj\n\tDOWA==",
        "X-Gm-Message-State": "AKaTC00sa1n6KRxsf/woDM0hyepTfQUSTBVyMd6U6l1ARyV6M0jIlaHpRtmMgY2/alAnDw==",
        "X-Received": "by 10.28.43.198 with SMTP id r189mr8714275wmr.67.1479930004469; \n\tWed, 23 Nov 2016 11:40:04 -0800 (PST)",
        "From": "Jan Blunck <jblunck@infradead.org>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com, i.maximets@samsung.com,\n\tbruce.richardson@intel.com, declan.doherty@intel.com",
        "Date": "Wed, 23 Nov 2016 20:38:31 +0100",
        "Message-Id": "<1479929912-32079-3-git-send-email-jblunck@infradead.org>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1479929912-32079-1-git-send-email-jblunck@infradead.org>",
        "References": "<CALe+Z02_342X4H9aFsvpaOJVw9Yb8F_qjmRH8XKUseP=QfjdWw@mail.gmail.com>\n\t<1479929912-32079-1-git-send-email-jblunck@infradead.org>",
        "Subject": "[dpdk-dev] [PATCH 3/4] ethdev: Add DPDK internal\n\t_rte_eth_dev_reset()",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <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": "This is a helper for DPDK internal users to force a reconfiguration of a\ndevice.\n\nSigned-off-by: Jan Blunck <jblunck@infradead.org>\n---\n lib/librte_ether/rte_ethdev.c          | 15 +++++++++++++++\n lib/librte_ether/rte_ethdev.h          | 13 +++++++++++++\n lib/librte_ether/rte_ether_version.map |  6 ++++++\n 3 files changed, 34 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex a3986ad..bd5787b 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -858,6 +858,21 @@ rte_eth_dev_configure(uint8_t port_id, uint16_t nb_rx_q, uint16_t nb_tx_q,\n \treturn 0;\n }\n \n+void\n+_rte_eth_dev_reset(struct rte_eth_dev *dev)\n+{\n+\tif (dev->data->dev_started) {\n+\t\tRTE_PMD_DEBUG_TRACE(\n+\t\t\t\"port %d must be stopped to allow reset\\n\", port_id);\n+\t\treturn;\n+\t}\n+\n+\trte_eth_dev_rx_queue_config(dev, 0);\n+\trte_eth_dev_tx_queue_config(dev, 0);\n+\n+\tmemset(&dev->data->dev_conf, 0, sizeof(dev->data->dev_conf));\n+}\n+\n static void\n rte_eth_dev_config_restore(uint8_t port_id)\n {\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 9678179..e0740db 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1914,6 +1914,19 @@ int rte_eth_dev_configure(uint8_t port_id, uint16_t nb_rx_queue,\n \t\tuint16_t nb_tx_queue, const struct rte_eth_conf *eth_conf);\n \n /**\n+ * @internal Release a devices rx/tx queues and clear its configuration to\n+ * force the user application to reconfigure it. It is for DPDK internal user\n+ * only.\n+ *\n+ * @param dev\n+ *  Pointer to struct rte_eth_dev.\n+ *\n+ * @return\n+ *  void\n+ */\n+void _rte_eth_dev_reset(struct rte_eth_dev *dev);\n+\n+/**\n  * Allocate and set up a receive queue for an Ethernet device.\n  *\n  * The function allocates a contiguous block of memory for *nb_rx_desc*\ndiff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map\nindex 72be66d..0c31c5d 100644\n--- a/lib/librte_ether/rte_ether_version.map\n+++ b/lib/librte_ether/rte_ether_version.map\n@@ -147,3 +147,9 @@ DPDK_16.11 {\n \trte_eth_dev_pci_remove;\n \n } DPDK_16.07;\n+\n+DPDK_17.02 {\n+\tglobal:\n+\n+\t_rte_eth_dev_reset;\n+} DPDK_16.11;\n",
    "prefixes": [
        "dpdk-dev",
        "3/4"
    ]
}