get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 6623,
    "url": "https://patches.dpdk.org/api/patches/6623/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1438012477-729-4-git-send-email-bernard.iremonger@intel.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": "<1438012477-729-4-git-send-email-bernard.iremonger@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1438012477-729-4-git-send-email-bernard.iremonger@intel.com",
    "date": "2015-07-27T15:54:36",
    "name": "[dpdk-dev,v7,3/4] bonding: free queue memory in close function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ddc284ba26edb2bf57e609512941fa9a0a9b569e",
    "submitter": {
        "id": 91,
        "url": "https://patches.dpdk.org/api/people/91/?format=api",
        "name": "Iremonger, Bernard",
        "email": "bernard.iremonger@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1438012477-729-4-git-send-email-bernard.iremonger@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/6623/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/6623/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 02733C5CC;\n\tMon, 27 Jul 2015 17:54:55 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id BDAAEC598\n\tfor <dev@dpdk.org>; Mon, 27 Jul 2015 17:54:47 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga103.jf.intel.com with ESMTP; 27 Jul 2015 08:54:47 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga001.fm.intel.com with ESMTP; 27 Jul 2015 08:54:44 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt6RFshoo018711; Mon, 27 Jul 2015 16:54:43 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id t6RFshqW000795;\n\tMon, 27 Jul 2015 16:54:43 +0100",
            "(from bairemon@localhost)\n\tby sivswdev01.ir.intel.com with  id t6RFshXG000791;\n\tMon, 27 Jul 2015 16:54:43 +0100"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.15,555,1432623600\"; d=\"scan'208\";a=\"755864402\"",
        "From": "Bernard Iremonger <bernard.iremonger@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 27 Jul 2015 16:54:36 +0100",
        "Message-Id": "<1438012477-729-4-git-send-email-bernard.iremonger@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1438012477-729-1-git-send-email-bernard.iremonger@intel.com>",
        "References": "<PATCH>\n\t<1438012477-729-1-git-send-email-bernard.iremonger@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v7 3/4] bonding: free queue memory in close\n\tfunction",
        "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": "add function bond_ethdev_free_queues() and call from the bond_ethdev_close() function.\n\nSigned-off-by: Bernard Iremonger <bernard.iremonger@intel.com>\n---\n drivers/net/bonding/rte_eth_bond_pmd.c     | 21 ++++++++++++++++++++-\n drivers/net/bonding/rte_eth_bond_private.h |  2 +-\n 2 files changed, 21 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c\nindex e1a9e7b..5cc6372 100644\n--- a/drivers/net/bonding/rte_eth_bond_pmd.c\n+++ b/drivers/net/bonding/rte_eth_bond_pmd.c\n@@ -1512,6 +1512,24 @@ bond_ethdev_start(struct rte_eth_dev *eth_dev)\n \treturn 0;\n }\n \n+static void\n+bond_ethdev_free_queues(struct rte_eth_dev *dev)\n+{\n+\tuint8_t i;\n+\n+\tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n+\t\trte_free(dev->data->rx_queues[i]);\n+\t\tdev->data->rx_queues[i] = NULL;\n+\t}\n+\tdev->data->nb_rx_queues = 0;\n+\n+\tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n+\t\trte_free(dev->data->tx_queues[i]);\n+\t\tdev->data->tx_queues[i] = NULL;\n+\t}\n+\tdev->data->nb_tx_queues = 0;\n+}\n+\n void\n bond_ethdev_stop(struct rte_eth_dev *eth_dev)\n {\n@@ -1553,8 +1571,9 @@ bond_ethdev_stop(struct rte_eth_dev *eth_dev)\n }\n \n void\n-bond_ethdev_close(struct rte_eth_dev *dev __rte_unused)\n+bond_ethdev_close(struct rte_eth_dev *dev)\n {\n+\tbond_ethdev_free_queues(dev);\n }\n \n /* forward declaration */\ndiff --git a/drivers/net/bonding/rte_eth_bond_private.h b/drivers/net/bonding/rte_eth_bond_private.h\nindex 9f57f4d..038bca6 100644\n--- a/drivers/net/bonding/rte_eth_bond_private.h\n+++ b/drivers/net/bonding/rte_eth_bond_private.h\n@@ -288,6 +288,6 @@ void\n bond_ethdev_stop(struct rte_eth_dev *eth_dev);\n \n void\n-bond_ethdev_close(struct rte_eth_dev *dev __rte_unused);\n+bond_ethdev_close(struct rte_eth_dev *dev);\n \n #endif\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "3/4"
    ]
}