get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 57564,
    "url": "https://patches.dpdk.org/api/patches/57564/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/fc5680c1d049f8216b8ebd8f5788d6184f2aac2a.1565252336.git.thierry.herbelot@6wind.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<fc5680c1d049f8216b8ebd8f5788d6184f2aac2a.1565252336.git.thierry.herbelot@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/fc5680c1d049f8216b8ebd8f5788d6184f2aac2a.1565252336.git.thierry.herbelot@6wind.com",
    "date": "2019-08-08T08:22:14",
    "name": "[19.11,V3,09/12] virtio: get all pending rx packets with vectorized functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7039b15bdb4f79bd4e6fdd6afbf9f5feac18e2d8",
    "submitter": {
        "id": 897,
        "url": "https://patches.dpdk.org/api/people/897/?format=api",
        "name": "Thierry Herbelot",
        "email": "thierry.herbelot@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/fc5680c1d049f8216b8ebd8f5788d6184f2aac2a.1565252336.git.thierry.herbelot@6wind.com/mbox/",
    "series": [
        {
            "id": 5981,
            "url": "https://patches.dpdk.org/api/series/5981/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5981",
            "date": "2019-08-08T08:22:05",
            "name": "Miscellaneous fixes",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/5981/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/57564/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/57564/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 7DFCD5424;\n\tThu,  8 Aug 2019 10:23:14 +0200 (CEST)",
            "from mail-wm1-f68.google.com (mail-wm1-f68.google.com\n\t[209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 37D422BAE\n\tfor <dev@dpdk.org>; Thu,  8 Aug 2019 10:23:00 +0200 (CEST)",
            "by mail-wm1-f68.google.com with SMTP id p74so1472581wme.4\n\tfor <dev@dpdk.org>; Thu, 08 Aug 2019 01:23:00 -0700 (PDT)",
            "from ascain.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tt13sm111437018wrr.0.2019.08.08.01.22.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 08 Aug 2019 01:22:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:in-reply-to:references;\n\tbh=uU3vOsC5tYEEbl/Y7A+DbWIseB+egChyotcPE52/iZs=;\n\tb=W5fYXOPa2CqK1NBLyRBzI+pNvEXSTEIqSP4a4MeOJwO6wyQBluIhYpDfGLNNZAQu0E\n\twGGT2s+LQs+nZpVuLgu8yvl8QJC6kfOBZGaAQmRrnR0eqbVAoYdVR4JJ3PTEe3SebW9/\n\tye1WfwGQ8guPzlxV/2OKUfQlz7OgpZZ/wSVpVdE+1lCCyuzHDVchCEABlasfKwPGk3n+\n\t9cPQ+bc09rL7KwEZzUB0hkgmS8UYEUjWVo9Zga2brkw9/vMLzuklpkxB8DW5aalz6ifY\n\tD1jjzqIUbVog+2ciHxxKzydsH94emogRFd2NUUg//qAu66kKVwWZU1IvRIu8QETmIQzB\n\tRq/A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:in-reply-to:references;\n\tbh=uU3vOsC5tYEEbl/Y7A+DbWIseB+egChyotcPE52/iZs=;\n\tb=XWMSC/AkcMXCmCd9DuobfZDX8FGuu9SThHxeQaTbD1qwkf0Zq6GsK3/2HGpV+0/708\n\tDZ6ANL7qbBi1I1qrHVjiwKsWBXJOKYTV05Mb+xIxs7IAlwEYk07ygJfK2KfYtem8h6Th\n\ty8jWY44Rm4fkUzpSEPA0A1LU0Jy2EikQ8pAccTAPoQEW9MFFMSadVld0WfiJEwYUH/hc\n\tvz8mCukHoWKSQmkyUJTq5TrR1pWkN8DFYm0Hc5tl8nysrsJ5ktOgOkjdwzuZV8jYmPpb\n\tNgkk6Pt+zC2OwvlDp8IM+uKKN0fGrqqpe7QjLgWOd/ncTgVJ9asrzqY1Qtp8gUAX9SFY\n\tOAHQ==",
        "X-Gm-Message-State": "APjAAAVYGYmRGhPauBoJaqd7VwNS/87asPIbDnTOMcXMfJNf8DoRCgeS\n\t+Y1Nmd2dChD1WmPhzNhS8u7GFHuzfg==",
        "X-Google-Smtp-Source": "APXvYqwHgUGFpXQ6XzQjbQL8LME2cVUn2rMvKNkCtiIvGvcXdFDlxp0u10Uwa4/eNt23YV0eKCDcfA==",
        "X-Received": "by 2002:a1c:c5c2:: with SMTP id\n\tv185mr3052174wmf.161.1565252579698; \n\tThu, 08 Aug 2019 01:22:59 -0700 (PDT)",
        "From": "Thierry Herbelot <thierry.herbelot@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Thibaut Collet <thibaut.collet@6wind.com>, stable@dpdk.org,\n\tThomas Monjalon <thomas@monjalon.net>",
        "Date": "Thu,  8 Aug 2019 10:22:14 +0200",
        "Message-Id": "<fc5680c1d049f8216b8ebd8f5788d6184f2aac2a.1565252336.git.thierry.herbelot@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": [
            "<cover.1565252336.git.thierry.herbelot@6wind.com>",
            "<cover.1565252336.git.thierry.herbelot@6wind.com>"
        ],
        "References": [
            "<cover.1565252336.git.thierry.herbelot@6wind.com>",
            "<cover.1565190405.git.thierry.herbelot@6wind.com>\n\t<cover.1565252336.git.thierry.herbelot@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH 19.11 V3 09/12] virtio: get all pending rx\n\tpackets with vectorized functions",
        "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": "From: Thibaut Collet <thibaut.collet@6wind.com>\n\nThe loop to read packets does not take all packets as the number of\navailable packets (nb_used) is decremented in the loop.\nTake all available packets provides a performance improvement of 3%.\n\nFixes: fc3d66212fed (\"virtio: add vector Rx\")\nCc: stable@dpdk.org\n\nSigned-off-by: Thibaut Collet <thibaut.collet@6wind.com>\n---\n drivers/net/virtio/virtio_rxtx_simple_neon.c | 5 +++--\n drivers/net/virtio/virtio_rxtx_simple_sse.c  | 5 +++--\n 2 files changed, 6 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_rxtx_simple_neon.c b/drivers/net/virtio/virtio_rxtx_simple_neon.c\nindex 70e89fc428e0..992e71f010eb 100644\n--- a/drivers/net/virtio/virtio_rxtx_simple_neon.c\n+++ b/drivers/net/virtio/virtio_rxtx_simple_neon.c\n@@ -42,7 +42,7 @@ virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n \tstruct virtnet_rx *rxvq = rx_queue;\n \tstruct virtqueue *vq = rxvq->vq;\n \tstruct virtio_hw *hw = vq->hw;\n-\tuint16_t nb_used;\n+\tuint16_t nb_used, nb_total;\n \tuint16_t desc_idx;\n \tstruct vring_used_elem *rused;\n \tstruct rte_mbuf **sw_ring;\n@@ -106,9 +106,10 @@ virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n \t\t\tvirtqueue_notify(vq);\n \t}\n \n+\tnb_total = nb_used;\n \tref_rx_pkts = rx_pkts;\n \tfor (nb_pkts_received = 0;\n-\t\tnb_pkts_received < nb_used;) {\n+\t\tnb_pkts_received < nb_total;) {\n \t\tuint64x2_t desc[RTE_VIRTIO_DESC_PER_LOOP / 2];\n \t\tuint64x2_t mbp[RTE_VIRTIO_DESC_PER_LOOP / 2];\n \t\tuint64x2_t pkt_mb[RTE_VIRTIO_DESC_PER_LOOP];\ndiff --git a/drivers/net/virtio/virtio_rxtx_simple_sse.c b/drivers/net/virtio/virtio_rxtx_simple_sse.c\nindex cb1610e71563..f9ec4ae69986 100644\n--- a/drivers/net/virtio/virtio_rxtx_simple_sse.c\n+++ b/drivers/net/virtio/virtio_rxtx_simple_sse.c\n@@ -43,7 +43,7 @@ virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n \tstruct virtnet_rx *rxvq = rx_queue;\n \tstruct virtqueue *vq = rxvq->vq;\n \tstruct virtio_hw *hw = vq->hw;\n-\tuint16_t nb_used;\n+\tuint16_t nb_used, nb_total;\n \tuint16_t desc_idx;\n \tstruct vring_used_elem *rused;\n \tstruct rte_mbuf **sw_ring;\n@@ -108,9 +108,10 @@ virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n \t\t\tvirtqueue_notify(vq);\n \t}\n \n+\tnb_total = nb_used;\n \tref_rx_pkts = rx_pkts;\n \tfor (nb_pkts_received = 0;\n-\t\tnb_pkts_received < nb_used;) {\n+\t\tnb_pkts_received < nb_total;) {\n \t\t__m128i desc[RTE_VIRTIO_DESC_PER_LOOP / 2];\n \t\t__m128i mbp[RTE_VIRTIO_DESC_PER_LOOP / 2];\n \t\t__m128i pkt_mb[RTE_VIRTIO_DESC_PER_LOOP];\n",
    "prefixes": [
        "19.11",
        "V3",
        "09/12"
    ]
}