get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96120,
    "url": "http://patchwork.dpdk.org/api/patches/96120/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210721142051.29327-3-wenwux.ma@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20210721142051.29327-3-wenwux.ma@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210721142051.29327-3-wenwux.ma@intel.com",
    "date": "2021-07-21T14:20:49",
    "name": "[v7,2/4] examples/vhost: use a new API to query remaining ring space",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "902130f68c0f5484e95c03efd70b8d6c20db5ccd",
    "submitter": {
        "id": 2163,
        "url": "http://patchwork.dpdk.org/api/people/2163/?format=api",
        "name": "Ma, WenwuX",
        "email": "wenwux.ma@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patchwork.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210721142051.29327-3-wenwux.ma@intel.com/mbox/",
    "series": [
        {
            "id": 17921,
            "url": "http://patchwork.dpdk.org/api/series/17921/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=17921",
            "date": "2021-07-21T14:20:47",
            "name": "support async dequeue for split ring",
            "version": 7,
            "mbox": "http://patchwork.dpdk.org/series/17921/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/96120/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/96120/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 80683A0C50;\n\tWed, 21 Jul 2021 04:28:36 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D4A36410F8;\n\tWed, 21 Jul 2021 04:28:28 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 23F31410DA\n for <dev@dpdk.org>; Wed, 21 Jul 2021 04:28:25 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jul 2021 19:28:25 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.109])\n by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jul 2021 19:28:23 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10051\"; a=\"233152393\"",
            "E=Sophos;i=\"5.84,256,1620716400\"; d=\"scan'208\";a=\"233152393\"",
            "E=Sophos;i=\"5.84,256,1620716400\"; d=\"scan'208\";a=\"511210470\""
        ],
        "From": "Wenwu Ma <wenwux.ma@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "maxime.coquelin@redhat.com, chenbo.xia@intel.com, cheng1.jiang@intel.com,\n jiayu.hu@intel.com, Wenwu Ma <wenwux.ma@intel.com>",
        "Date": "Wed, 21 Jul 2021 14:20:49 +0000",
        "Message-Id": "<20210721142051.29327-3-wenwux.ma@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210721142051.29327-1-wenwux.ma@intel.com>",
        "References": "<20210602083110.5530-1-yuanx.wang@intel.com>\n <20210721142051.29327-1-wenwux.ma@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 2/4] examples/vhost: use a new API to query\n remaining ring space",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "A new API for querying the remaining descriptor ring capacity\nis available, so we use the new one instead of the old one.\n\nSigned-off-by: Wenwu Ma <wenwux.ma@intel.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n examples/vhost/ioat.c | 6 +-----\n 1 file changed, 1 insertion(+), 5 deletions(-)",
    "diff": "diff --git a/examples/vhost/ioat.c b/examples/vhost/ioat.c\nindex 2a2c2d7202..bf4e033bdb 100644\n--- a/examples/vhost/ioat.c\n+++ b/examples/vhost/ioat.c\n@@ -17,7 +17,6 @@ struct packet_tracker {\n \tunsigned short next_read;\n \tunsigned short next_write;\n \tunsigned short last_remain;\n-\tunsigned short ioat_space;\n };\n \n struct packet_tracker cb_tracker[MAX_VHOST_DEVICE];\n@@ -113,7 +112,6 @@ open_ioat(const char *value)\n \t\t\tgoto out;\n \t\t}\n \t\trte_rawdev_start(dev_id);\n-\t\tcb_tracker[dev_id].ioat_space = IOAT_RING_SIZE - 1;\n \t\tdma_info->nr++;\n \t\ti++;\n \t}\n@@ -140,7 +138,7 @@ ioat_transfer_data_cb(int vid, uint16_t queue_id,\n \t\t\tsrc = descs[i_desc].src;\n \t\t\tdst = descs[i_desc].dst;\n \t\t\ti_seg = 0;\n-\t\t\tif (cb_tracker[dev_id].ioat_space < src->nr_segs)\n+\t\t\tif (rte_ioat_burst_capacity(dev_id) < src->nr_segs)\n \t\t\t\tbreak;\n \t\t\twhile (i_seg < src->nr_segs) {\n \t\t\t\trte_ioat_enqueue_copy(dev_id,\n@@ -155,7 +153,6 @@ ioat_transfer_data_cb(int vid, uint16_t queue_id,\n \t\t\t}\n \t\t\twrite &= mask;\n \t\t\tcb_tracker[dev_id].size_track[write] = src->nr_segs;\n-\t\t\tcb_tracker[dev_id].ioat_space -= src->nr_segs;\n \t\t\twrite++;\n \t\t}\n \t} else {\n@@ -194,7 +191,6 @@ ioat_check_completed_copies_cb(int vid, uint16_t queue_id,\n \t\tif (n_seg == 0)\n \t\t\treturn 0;\n \n-\t\tcb_tracker[dev_id].ioat_space += n_seg;\n \t\tn_seg += cb_tracker[dev_id].last_remain;\n \n \t\tread = cb_tracker[dev_id].next_read;\n",
    "prefixes": [
        "v7",
        "2/4"
    ]
}