get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77952,
    "url": "http://patches.dpdk.org/api/patches/77952/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1600319386-24559-1-git-send-email-lirongqing@baidu.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": "<1600319386-24559-1-git-send-email-lirongqing@baidu.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1600319386-24559-1-git-send-email-lirongqing@baidu.com",
    "date": "2020-09-17T05:09:45",
    "name": "[1/2] af_xdp: not return a negative value in af_xdp_rx_zc",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a42c36090f91b739cfc2fd389edb37a4b6b3adb7",
    "submitter": {
        "id": 1979,
        "url": "http://patches.dpdk.org/api/people/1979/?format=api",
        "name": "Li RongQing",
        "email": "lirongqing@baidu.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1600319386-24559-1-git-send-email-lirongqing@baidu.com/mbox/",
    "series": [
        {
            "id": 12294,
            "url": "http://patches.dpdk.org/api/series/12294/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12294",
            "date": "2020-09-17T05:09:45",
            "name": "[1/2] af_xdp: not return a negative value in af_xdp_rx_zc",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12294/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77952/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/77952/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 54B16A04B6;\n\tThu, 17 Sep 2020 07:09:52 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3CBE11D505;\n\tThu, 17 Sep 2020 07:09:51 +0200 (CEST)",
            "from tc-sys-mailedm02.tc.baidu.com (mx133-tc.baidu.com\n [61.135.168.133]) by dpdk.org (Postfix) with ESMTP id 5078E1D454\n for <dev@dpdk.org>; Thu, 17 Sep 2020 07:09:49 +0200 (CEST)",
            "from localhost (cp01-cos-dev01.cp01.baidu.com [10.92.119.46])\n by tc-sys-mailedm02.tc.baidu.com (Postfix) with ESMTP id B1B3611C005C\n for <dev@dpdk.org>; Thu, 17 Sep 2020 13:09:46 +0800 (CST)"
        ],
        "From": "Li RongQing <lirongqing@baidu.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 17 Sep 2020 13:09:45 +0800",
        "Message-Id": "<1600319386-24559-1-git-send-email-lirongqing@baidu.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "Subject": "[dpdk-dev] [PATCH 1/2] af_xdp: not return a negative value in\n\taf_xdp_rx_zc",
        "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 <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": "af_xdp_rx_zc should always return the number of received packets,\nand negative value will be as number of received packets, and\nconfuse the caller\n\nFixes: d8a210774e1d (\"net/af_xdp: support unaligned umem chunks\")\nCc: stable@dpdk.org\nSigned-off-by: Li RongQing <lirongqing@baidu.com>\n---\n drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c\nindex 936d4a7d5..7ce4ad04a 100644\n--- a/drivers/net/af_xdp/rte_eth_af_xdp.c\n+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c\n@@ -236,7 +236,7 @@ af_xdp_rx_zc(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \tif (rte_pktmbuf_alloc_bulk(umem->mb_pool, fq_bufs, nb_pkts)) {\n \t\tAF_XDP_LOG(DEBUG,\n \t\t\t\"Failed to get enough buffers for fq.\\n\");\n-\t\treturn -1;\n+\t\treturn 0;\n \t}\n \n \trcvd = xsk_ring_cons__peek(rx, nb_pkts, &idx_rx);\n",
    "prefixes": [
        "1/2"
    ]
}