get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118350,
    "url": "http://patches.dpdk.org/api/patches/118350/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1666073977-175484-13-git-send-email-andy.pei@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": "<1666073977-175484-13-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1666073977-175484-13-git-send-email-andy.pei@intel.com",
    "date": "2022-10-18T06:19:37",
    "name": "[v7,12/12] vhost: improve vDPA blk device configure condition",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3e7940eb5d33547c9822144b7b55f9a9a9e597c3",
    "submitter": {
        "id": 1185,
        "url": "http://patches.dpdk.org/api/people/1185/?format=api",
        "name": "Pei, Andy",
        "email": "andy.pei@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1666073977-175484-13-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 25271,
            "url": "http://patches.dpdk.org/api/series/25271/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25271",
            "date": "2022-10-18T06:19:25",
            "name": "vdpa/ifc: add multi queue support",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/25271/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/118350/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/118350/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 6663FA0560;\n\tTue, 18 Oct 2022 08:24:38 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CF3A842B6C;\n\tTue, 18 Oct 2022 08:24:02 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 6D95042905\n for <dev@dpdk.org>; Tue, 18 Oct 2022 08:24:01 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Oct 2022 23:24:01 -0700",
            "from dpdk-dipei.sh.intel.com ([10.67.110.251])\n by orsmga008.jf.intel.com with ESMTP; 17 Oct 2022 23:23:59 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1666074241; x=1697610241;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=B6n3//Zf60nblRkZRy1wXFcfXglyokxJ/BBds+bYVgw=;\n b=gvsMdTqJQZlAt3Q20H/9g2dT4JFPztwYjv8qlvjmOtNnVYmGuOS/1yud\n 3amEeXyXBqGt8xAWv+G+O/qTd1T4pwHVhY5L8ueCn8Z2zzltRX9DVVLcY\n IIA0HOEO82SmVxF/GT+WEON5DTy3oweRQt4Tkt1R+HeJ2EBkyH1K2uesl\n j2XzD26eFHfIDBaXkB4QDD5OGw31DAdMHfbrDgHPP/NLv/YH1jKaHNUoN\n 165hxHhomuu6n7x6ZYnbQoJD8mEGQVTWQewoec4kmjXN3c8YnG4uNDzs3\n eHvnjnPUjtADGz/rvAA3260dqrwg8+KbVMY0qUAeXjgpCjKBo55Dn33ut Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10503\"; a=\"285732827\"",
            "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"285732827\"",
            "E=McAfee;i=\"6500,9779,10503\"; a=\"659655936\"",
            "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"659655936\""
        ],
        "X-ExtLoop1": "1",
        "From": "Andy Pei <andy.pei@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "chenbo.xia@intel.com, rosen.xu@intel.com, wei.huang@intel.com,\n gang.cao@intel.com, maxime.coquelin@redhat.com",
        "Subject": "[PATCH v7 12/12] vhost: improve vDPA blk device configure condition",
        "Date": "Tue, 18 Oct 2022 14:19:37 +0800",
        "Message-Id": "<1666073977-175484-13-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1666073977-175484-1-git-send-email-andy.pei@intel.com>",
        "References": "<1661229305-240952-2-git-send-email-andy.pei@intel.com>\n <1666073977-175484-1-git-send-email-andy.pei@intel.com>",
        "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": "To support multi-queue, configure device\nafter call fd of all queues are set.\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\nSigned-off-by: Huang Wei <wei.huang@intel.com>\nReviewed-by: Chenbo Xia <chenbo.xia@intel.com>\n---\n lib/vhost/vhost_user.c | 13 ++++++++++---\n 1 file changed, 10 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c\nindex d5dbd9b..96383b9 100644\n--- a/lib/vhost/vhost_user.c\n+++ b/lib/vhost/vhost_user.c\n@@ -2973,6 +2973,7 @@ static int is_vring_iotlb(struct virtio_net *dev,\n \tuint32_t vdpa_type;\n \tuint32_t request;\n \tuint32_t i;\n+\tuint16_t blk_call_fd;\n \n \tdev = get_device(vid);\n \tif (dev == NULL)\n@@ -3183,9 +3184,15 @@ static int is_vring_iotlb(struct virtio_net *dev,\n \t\tgoto out;\n \n \tvdpa_type = vdpa_dev->vdpa_device_type;\n-\tif (vdpa_type == RTE_VHOST_VDPA_DEVICE_TYPE_BLK\n-\t\t&& request != VHOST_USER_SET_VRING_CALL)\n-\t\tgoto out;\n+\tif (vdpa_type == RTE_VHOST_VDPA_DEVICE_TYPE_BLK) {\n+\t\tif (request == VHOST_USER_SET_VRING_CALL) {\n+\t\t\tblk_call_fd = ctx.msg.payload.u64 & VHOST_USER_VRING_IDX_MASK;\n+\t\t\tif (blk_call_fd != dev->nr_vring - 1)\n+\t\t\t\tgoto out;\n+\t\t} else {\n+\t\t\tgoto out;\n+\t\t}\n+\t}\n \n \tif (!(dev->flags & VIRTIO_DEV_VDPA_CONFIGURED)) {\n \t\tif (vdpa_dev->ops->dev_conf(dev->vid))\n",
    "prefixes": [
        "v7",
        "12/12"
    ]
}