get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115315,
    "url": "http://patches.dpdk.org/api/patches/115315/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220822034731.528424-1-joyce.kong@arm.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": "<20220822034731.528424-1-joyce.kong@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220822034731.528424-1-joyce.kong@arm.com",
    "date": "2022-08-22T03:47:29",
    "name": "[v3,0/2] add a fast path for memif Rx/Tx",
    "commit_ref": null,
    "pull_url": null,
    "state": null,
    "archived": false,
    "hash": null,
    "submitter": {
        "id": 970,
        "url": "http://patches.dpdk.org/api/people/970/?format=api",
        "name": "Joyce Kong",
        "email": "joyce.kong@arm.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220822034731.528424-1-joyce.kong@arm.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/115315/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/115315/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8BAEFA00C2;\n\tMon, 22 Aug 2022 05:48:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1ACF441132;\n\tMon, 22 Aug 2022 05:48:09 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by mails.dpdk.org (Postfix) with ESMTP id CB485410FA\n for <dev@dpdk.org>; Mon, 22 Aug 2022 05:48:07 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F0B3B13D5;\n Sun, 21 Aug 2022 20:48:09 -0700 (PDT)",
            "from net-arm-n1amp-02.shanghai.arm.com\n (net-arm-n1amp-02.shanghai.arm.com [10.169.210.108])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 62EA93F718;\n Sun, 21 Aug 2022 20:48:04 -0700 (PDT)"
        ],
        "From": "Joyce Kong <joyce.kong@arm.com>",
        "To": "jgrajcia@cisco.com, stephen@networkplumber.org, huzaifa.rahman@emumba.com",
        "Cc": "dev@dpdk.org, nd@arm.com, mb@smartsharesystems.com, ruifeng.wang@arm.com,\n Joyce Kong <joyce.kong@arm.com>",
        "Subject": "[PATCH v3 0/2] add a fast path for memif Rx/Tx",
        "Date": "Mon, 22 Aug 2022 03:47:29 +0000",
        "Message-Id": "<20220822034731.528424-1-joyce.kong@arm.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220701102815.1444223-2-joyce.kong@arm.com>",
        "References": "<20220701102815.1444223-2-joyce.kong@arm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "For memif non-zero-copy mode, there is a branch to compare\nthe mbuf and memif buffer size during memory copy. Add a\nfast memcpy path by removing this branch with mbuf and memif\nbuffer size defined at compile time. For Rx fast path, bulk\nallocating mbufs to get additional speedup. For Tx fast path,\nbulk free mbufs which come from the same mempool.\n\nWhen mbuf == memif buffer size, both Rx/Tx would choose the\nfast memcpy path. When mbuf < memif buffer size, the Rx\nchooses previous memcpy path while Tx chooses fast memcpy\npath. When mbuf > memif buffer size, the Rx chooses fast\nmemcpy path while Tx chooses previous memcpy path.\n\nTest with 1p1q on N1SDP AArch64 server,\n---------------------------------------------------------\n  buf size  | memif = mbuf | memif < mbuf | memif > mbuf\n---------------------------------------------------------\nnon-zc gain |    47.16%    |    24.67%    |    12.47%\n---------------------------------------------------------\n   zc gain  |    20.96%    |     9.16%    |    10.66%\n---------------------------------------------------------\n\nTest with 1p1q on Cascade Lake Xeon X86 server,\n---------------------------------------------------------\n  buf size  | memif = mbuf | memif < mbuf | memif > mbuf\n---------------------------------------------------------\nnon-zc gain |    23.52%    |    14.20%    |     5.10%\n---------------------------------------------------------\n   zc gain  |    17.49%    |    10.62%    |    12.42%\n---------------------------------------------------------\n\nv3:\n Add bulk allocation to get additional speedup for memif Rx\n fast path. <Stephen Hemminger>\n\nv2:\n Rebase v1 and update commit message.\n\nJoyce Kong (2):\n  net/memif: add a Rx fast path\n  net/memif: add a Tx fast path\n\n drivers/net/memif/rte_eth_memif.c | 271 +++++++++++++++++++++---------\n 1 file changed, 188 insertions(+), 83 deletions(-)",
    "diff": null,
    "prefixes": [
        "v3",
        "0/2"
    ]
}