get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96285,
    "url": "http://patches.dpdk.org/api/patches/96285/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210726115951.92-1-clgx0086@163.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": "<20210726115951.92-1-clgx0086@163.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210726115951.92-1-clgx0086@163.com",
    "date": "2021-07-26T11:59:51",
    "name": "net/virtio: fix memory leak of interrupt handle",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c43bc6a5e4fd7e7a34b89bff9421c3c7a9c9c8fb",
    "submitter": {
        "id": 2293,
        "url": "http://patches.dpdk.org/api/people/2293/?format=api",
        "name": "Gaoxiang Liu",
        "email": "clgx0086@163.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210726115951.92-1-clgx0086@163.com/mbox/",
    "series": [
        {
            "id": 17992,
            "url": "http://patches.dpdk.org/api/series/17992/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17992",
            "date": "2021-07-26T11:59:51",
            "name": "net/virtio: fix memory leak of interrupt handle",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/17992/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/96285/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/96285/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2BF23A0C47;\n\tMon, 26 Jul 2021 14:00:12 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D8FD140F35;\n\tMon, 26 Jul 2021 14:00:11 +0200 (CEST)",
            "from m12-18.163.com (m12-18.163.com [220.181.12.18])\n by mails.dpdk.org (Postfix) with ESMTP id 3210E40DDA\n for <dev@dpdk.org>; Mon, 26 Jul 2021 14:00:08 +0200 (CEST)",
            "from DESKTOP-ONA2IA7.localdomain (unknown [39.182.54.79])\n by smtp14 (Coremail) with SMTP id EsCowAB30tS4o_5gEl+Iwg--.41256S4;\n Mon, 26 Jul 2021 20:00:04 +0800 (CST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=1iLrL\n kIxgQ2BOQzt1HINidcT4hpli4Pt1bdVOh0V14c=; b=hURMowtkebBvbFZL8/n5s\n vgUfz9uJGaYvtYSBYJxHkW1zSfDpkeY9LqBr8d3YRCEmF/+mWcM3julnKN2jZ2PU\n g4HCRaNue/kOUb8yeG0fV4D0f2KD/fhIc8xDcSlotAvn86ZhUmUxscsxV/G8so/3\n HYffo0JdCsKyTyg4TD20Y8=",
        "From": "Gaoxiang Liu <clgx0086@163.com>",
        "To": "chenbo.xia@intel.com,\n\tdev@dpdk.org,\n\tliugaoxiang@huawei.com",
        "Cc": "Gaoxiang Liu <clgx0086@163.com>",
        "Date": "Mon, 26 Jul 2021 19:59:51 +0800",
        "Message-Id": "<20210726115951.92-1-clgx0086@163.com>",
        "X-Mailer": "git-send-email 2.32.0",
        "In-Reply-To": "<20210725020315.15010-1-clgx0086@163.com>",
        "References": "<20210725020315.15010-1-clgx0086@163.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "EsCowAB30tS4o_5gEl+Iwg--.41256S4",
        "X-Coremail-Antispam": "1Uf129KBjvdXoWrtFy5CFWfuw4UXr13ur47twb_yoWkKwb_Gr\n yxCFy7XF18GFnIkrWjkr1rXFWayay8tF4UZ3yaq34FgF1UA3W7Xr12v34kWFnrWw13ZF1D\n Xrs3Jr98Z34SkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjcyCtUUUUU==",
        "X-Originating-IP": "[39.182.54.79]",
        "X-CM-SenderInfo": "hfoj5iqqywqiywtou0bp/xtbBQgTbel++MrMmHQAAs8",
        "Subject": "[dpdk-dev] [PATCH] net/virtio: fix memory leak of interrupt handle",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Free memory of interrupt handle in virtio_user_dev_uninit() to\navoid memory leak.\nwhen virtio user dev closes, the \"intr_handle\" memory is not freed\nthat is allocated in virtio_user_fill_intr_handle().\n\nFixes: 3d4fb6fd2505 <\"net/virtio-user: support Rx interrupt\">\n\nSigned-off-by: Gaoxiang Liu <clgx0086@163.com>\n---\n drivers/net/virtio/virtio_user/virtio_user_dev.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c\nindex 1cd1e95f4..16c58710d 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c\n@@ -654,6 +654,13 @@ virtio_user_dev_init(struct virtio_user_dev *dev, char *path, int queues,\n void\n virtio_user_dev_uninit(struct virtio_user_dev *dev)\n {\n+\tstruct rte_eth_dev *eth_dev = &rte_eth_devices[dev->hw.port_id];\n+\n+\tif (eth_dev->intr_handle) {\n+\t\tfree(eth_dev->intr_handle);\n+\t\teth_dev->intr_handle = NULL;\n+\t}\n+\n \tvirtio_user_stop_device(dev);\n \n \trte_mem_event_callback_unregister(VIRTIO_USER_MEM_EVENT_CLB_NAME, dev);\n",
    "prefixes": []
}