get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 26973,
    "url": "http://patches.dpdk.org/api/patches/26973/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1500273339-145597-1-git-send-email-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": "<1500273339-145597-1-git-send-email-tiwei.bie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1500273339-145597-1-git-send-email-tiwei.bie@intel.com",
    "date": "2017-07-17T06:35:39",
    "name": "[dpdk-dev] net/virtio: fix coding style",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "05720996fb1b5b7c22fe1473df889ca06127761d",
    "submitter": {
        "id": 617,
        "url": "http://patches.dpdk.org/api/people/617/?format=api",
        "name": "Tiwei Bie",
        "email": "tiwei.bie@intel.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/1500273339-145597-1-git-send-email-tiwei.bie@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/26973/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/26973/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 67D8D47CD;\n\tMon, 17 Jul 2017 08:37:10 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id C967C3253\n\tfor <dev@dpdk.org>; Mon, 17 Jul 2017 08:37:08 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t16 Jul 2017 23:37:07 -0700",
            "from dpdk25.sh.intel.com ([10.67.111.96])\n\tby FMSMGA003.fm.intel.com with ESMTP; 16 Jul 2017 23:37:06 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.40,373,1496127600\"; d=\"scan'208\";a=\"879595257\"",
        "From": "Tiwei Bie <tiwei.bie@intel.com>",
        "To": "yliu@fridaylinux.org,\n\tmaxime.coquelin@redhat.com,\n\tdev@dpdk.org",
        "Date": "Mon, 17 Jul 2017 14:35:39 +0800",
        "Message-Id": "<1500273339-145597-1-git-send-email-tiwei.bie@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Subject": "[dpdk-dev] [PATCH] net/virtio: fix coding style",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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": "Make the code more readable. No functional change.\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n drivers/net/virtio/virtio_rxtx.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c\nindex fbc96df..e30377c 100644\n--- a/drivers/net/virtio/virtio_rxtx.c\n+++ b/drivers/net/virtio/virtio_rxtx.c\n@@ -744,8 +744,9 @@ virtio_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n \n \tvirtio_rmb();\n \n-\tnum = (uint16_t)(likely(nb_used <= nb_pkts) ? nb_used : nb_pkts);\n-\tnum = (uint16_t)(likely(num <= VIRTIO_MBUF_BURST_SZ) ? num : VIRTIO_MBUF_BURST_SZ);\n+\tnum = likely(nb_used <= nb_pkts) ? nb_used : nb_pkts;\n+\tif (unlikely(num > VIRTIO_MBUF_BURST_SZ))\n+\t\tnum = VIRTIO_MBUF_BURST_SZ;\n \tif (likely(num > DESC_PER_CACHELINE))\n \t\tnum = num - ((vq->vq_used_cons_idx + num) % DESC_PER_CACHELINE);\n \n",
    "prefixes": [
        "dpdk-dev"
    ]
}