get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54902,
    "url": "http://patches.dpdk.org/api/patches/54902/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190618074159.3322-4-tiwei.bie@intel.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": "<20190618074159.3322-4-tiwei.bie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190618074159.3322-4-tiwei.bie@intel.com",
    "date": "2019-06-18T07:41:58",
    "name": "[3/4] net/virtio: fix memory leak in mergeable packed Rx",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9a9ab435f1dd56d183a094f8b9d4c5886aa1dcfb",
    "submitter": {
        "id": 617,
        "url": "http://patches.dpdk.org/api/people/617/?format=api",
        "name": "Tiwei Bie",
        "email": "tiwei.bie@intel.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/20190618074159.3322-4-tiwei.bie@intel.com/mbox/",
    "series": [
        {
            "id": 5048,
            "url": "http://patches.dpdk.org/api/series/5048/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5048",
            "date": "2019-06-18T07:41:55",
            "name": "Some fixes for mergeable Rx",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/5048/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54902/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54902/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 4A7461C125;\n\tTue, 18 Jun 2019 09:43:34 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id A81961C0DC;\n\tTue, 18 Jun 2019 09:43:28 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Jun 2019 00:43:28 -0700",
            "from npg-dpdk-virtio-tbie-2.sh.intel.com ([10.67.104.151])\n\tby orsmga006.jf.intel.com with ESMTP; 18 Jun 2019 00:43:27 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Tiwei Bie <tiwei.bie@intel.com>",
        "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org",
        "Cc": "stable@dpdk.org",
        "Date": "Tue, 18 Jun 2019 15:41:58 +0800",
        "Message-Id": "<20190618074159.3322-4-tiwei.bie@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190618074159.3322-1-tiwei.bie@intel.com>",
        "References": "<20190618074159.3322-1-tiwei.bie@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 3/4] net/virtio: fix memory leak in mergeable\n\tpacked Rx",
        "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": "When there is no enough segments for a packet in mergeable\npacked Rx path, we should free the whole mbuf chain instead\nof just the last segment.\n\nFixes: a76290c8f1cf (\"net/virtio: implement Rx path for packed queues\")\nCc: stable@dpdk.org\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n drivers/net/virtio/virtio_rxtx.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c\nindex 9cf422ffe..8b75291f5 100644\n--- a/drivers/net/virtio/virtio_rxtx.c\n+++ b/drivers/net/virtio/virtio_rxtx.c\n@@ -1910,7 +1910,7 @@ virtio_recv_mergeable_pkts_packed(void *rx_queue,\n \t\t} else {\n \t\t\tPMD_RX_LOG(ERR,\n \t\t\t\t\t\"No enough segments for packet.\");\n-\t\t\tvirtio_discard_rxbuf(vq, prev);\n+\t\t\trte_pktmbuf_free(rx_pkts[nb_rx]);\n \t\t\trxvq->stats.errors++;\n \t\t\tbreak;\n \t\t}\n",
    "prefixes": [
        "3/4"
    ]
}