get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116384,
    "url": "https://patches.dpdk.org/api/patches/116384/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1663308990-621-3-git-send-email-andy.pei@intel.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": "<1663308990-621-3-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1663308990-621-3-git-send-email-andy.pei@intel.com",
    "date": "2022-09-16T06:16:24",
    "name": "[v3,2/8] vdpa/ifc: add multi-queue support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d45323eee84dfee5ca02f9de8ebffbcf429ad0be",
    "submitter": {
        "id": 1185,
        "url": "https://patches.dpdk.org/api/people/1185/?format=api",
        "name": "Pei, Andy",
        "email": "andy.pei@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "https://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1663308990-621-3-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 24689,
            "url": "https://patches.dpdk.org/api/series/24689/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24689",
            "date": "2022-09-16T06:16:22",
            "name": "vdpa/ifc: add multi queue support",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/24689/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/116384/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/116384/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 9C8B5A0032;\n\tFri, 16 Sep 2022 08:17:10 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E51AC4280D;\n\tFri, 16 Sep 2022 08:17:06 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 48D83427EE\n for <dev@dpdk.org>; Fri, 16 Sep 2022 08:17:03 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Sep 2022 23:16:32 -0700",
            "from dpdk-dipei.sh.intel.com ([10.67.110.251])\n by orsmga003.jf.intel.com with ESMTP; 15 Sep 2022 23:16:30 -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=1663309023; x=1694845023;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=BV2y/XNmjxjn/1JnW3prM9s1CMZkSf8tdWtScQT4Ojs=;\n b=OiK811MdRUXOfiJylZtCIri5mAt9jq2D0k8SYRbLq6B6Zy1KlwIB7CD1\n IgOPRi1nMp7agYgRdjn562HogKksvp++b5nVr6pzLtfB5FN0An8My11p5\n ayBt4Oja+fVts18Xq7xXmoBjkT5lhVGbc8ybgFakAbbDSN+KO/G7d3CUB\n xrslNqudkg1hfw32XszGRi9t6050mkvP0VTmsgnDDTlVVJttDjlZDLVzu\n 7t/ZTCdSa5xr+YYvoE6WWrde4svags2kCn+N5o6Wu5r7ldiA9UH2ok+KG\n MX0BGY9Zy+wS22alKS23wpX0eq5dugatYU27CH1TVM+fgQ2+5W9Nt9rvp w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10471\"; a=\"278650932\"",
            "E=Sophos;i=\"5.93,320,1654585200\"; d=\"scan'208\";a=\"278650932\"",
            "E=Sophos;i=\"5.93,320,1654585200\"; d=\"scan'208\";a=\"568724548\""
        ],
        "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 v3 2/8] vdpa/ifc: add multi-queue support",
        "Date": "Fri, 16 Sep 2022 14:16:24 +0800",
        "Message-Id": "<1663308990-621-3-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1663308990-621-1-git-send-email-andy.pei@intel.com>",
        "References": "<1661229305-240952-2-git-send-email-andy.pei@intel.com>\n <1663308990-621-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": "Enable VHOST_USER_PROTOCOL_F_MQ feature.\nExpose IFCVF_MQ_OFFSET register to enable multi queue.\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\nSigned-off-by: Huang Wei <wei.huang@intel.com>\n---\n drivers/vdpa/ifc/base/ifcvf.c | 5 +++++\n drivers/vdpa/ifc/base/ifcvf.h | 2 ++\n drivers/vdpa/ifc/ifcvf_vdpa.c | 1 +\n 3 files changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/vdpa/ifc/base/ifcvf.c b/drivers/vdpa/ifc/base/ifcvf.c\nindex f1e1474..34c8226 100644\n--- a/drivers/vdpa/ifc/base/ifcvf.c\n+++ b/drivers/vdpa/ifc/base/ifcvf.c\n@@ -90,6 +90,11 @@\n \tif (!hw->lm_cfg)\n \t\tWARNINGOUT(\"HW support live migration not support!\\n\");\n \n+\tif (hw->mem_resource[4].addr)\n+\t\thw->mq_cfg = hw->mem_resource[4].addr + IFCVF_MQ_OFFSET;\n+\telse\n+\t\thw->mq_cfg = NULL;\n+\n \tif (hw->common_cfg == NULL || hw->notify_base == NULL ||\n \t\t\thw->isr == NULL || hw->dev_cfg == NULL) {\n \t\tDEBUGOUT(\"capability incomplete\\n\");\ndiff --git a/drivers/vdpa/ifc/base/ifcvf.h b/drivers/vdpa/ifc/base/ifcvf.h\nindex ef7697a..d16d9ab 100644\n--- a/drivers/vdpa/ifc/base/ifcvf.h\n+++ b/drivers/vdpa/ifc/base/ifcvf.h\n@@ -50,6 +50,7 @@\n \n #define IFCVF_LM_CFG_SIZE\t\t0x40\n #define IFCVF_LM_RING_STATE_OFFSET\t0x20\n+#define IFCVF_MQ_OFFSET\t\t\t0x28\n \n #define IFCVF_LM_LOGGING_CTRL\t\t0x0\n \n@@ -149,6 +150,7 @@ struct ifcvf_hw {\n \tu16    *notify_base;\n \tu16    *notify_addr[IFCVF_MAX_QUEUES * 2];\n \tu8     *lm_cfg;\n+\tu8     *mq_cfg;\n \tstruct vring_info vring[IFCVF_MAX_QUEUES * 2];\n \tu8 nr_vring;\n \tint device_type;\ndiff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c\nindex 07cc63d..3e5ffba 100644\n--- a/drivers/vdpa/ifc/ifcvf_vdpa.c\n+++ b/drivers/vdpa/ifc/ifcvf_vdpa.c\n@@ -1248,6 +1248,7 @@ struct rte_vdpa_dev_info {\n \t\t 1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD | \\\n \t\t 1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER | \\\n \t\t 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD | \\\n+\t\t 1ULL << VHOST_USER_PROTOCOL_F_MQ | \\\n \t\t 1ULL << VHOST_USER_PROTOCOL_F_STATUS)\n \n #define VDPA_BLK_PROTOCOL_FEATURES \\\n",
    "prefixes": [
        "v3",
        "2/8"
    ]
}