get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54900,
    "url": "http://patches.dpdk.org/api/patches/54900/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190618074159.3322-2-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-2-tiwei.bie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190618074159.3322-2-tiwei.bie@intel.com",
    "date": "2019-06-18T07:41:56",
    "name": "[1/4] net/virtio: fix memory leak in in-order Rx",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a757aebae4bd50e99c5ea8ff085960490fcc34cd",
    "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-2-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/54900/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54900/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "Tiwei Bie <tiwei.bie@intel.com>",
        "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Amp-File-Uploaded": "False",
        "References": "<20190618074159.3322-1-tiwei.bie@intel.com>",
        "In-Reply-To": "<20190618074159.3322-1-tiwei.bie@intel.com>",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0ED411C10F;\n\tTue, 18 Jun 2019 09:43:29 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 0C6DC1C0CC;\n\tTue, 18 Jun 2019 09:43:25 +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:25 -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:24 -0700"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailman-Version": "2.1.15",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-ExtLoop1": "1",
        "Subject": "[dpdk-dev] [PATCH 1/4] net/virtio: fix memory leak in in-order Rx",
        "Date": "Tue, 18 Jun 2019 15:41:56 +0800",
        "Message-Id": "<20190618074159.3322-2-tiwei.bie@intel.com>",
        "Cc": "stable@dpdk.org",
        "Precedence": "list"
    },
    "content": "When there is no enough segments for a packet in in-order\nmergeable Rx path, we should free the whole mbuf chain instead\nof just the last segment.\n\nFixes: e5f456a98d3c (\"net/virtio: support in-order Rx and Tx\")\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 1f1178467..bdb3a2f18 100644\n--- a/drivers/net/virtio/virtio_rxtx.c\n+++ b/drivers/net/virtio/virtio_rxtx.c\n@@ -1555,7 +1555,7 @@ virtio_recv_pkts_inorder(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_inorder(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": [
        "1/4"
    ]
}