get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118411,
    "url": "http://patches.dpdk.org/api/patches/118411/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1666094871-25721-10-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": "<1666094871-25721-10-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1666094871-25721-10-git-send-email-andy.pei@intel.com",
    "date": "2022-10-18T12:07:48",
    "name": "[v8,09/12] vdpa/ifc: change some driver logic",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8817e1fe198244e770e1fe676122b52a3c3c288e",
    "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/1666094871-25721-10-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 25282,
            "url": "http://patches.dpdk.org/api/series/25282/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25282",
            "date": "2022-10-18T12:07:39",
            "name": "vdpa/ifc: add multi queue support",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/25282/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/118411/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/118411/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 8BD49A0560;\n\tTue, 18 Oct 2022 14:59:11 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A850142836;\n\tTue, 18 Oct 2022 14:58:38 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 0FD21427F4\n for <dev@dpdk.org>; Tue, 18 Oct 2022 14:58:33 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Oct 2022 05:58:28 -0700",
            "from dpdk-dipei.sh.intel.com ([10.67.110.251])\n by fmsmga002.fm.intel.com with ESMTP; 18 Oct 2022 05:58:27 -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=1666097914; x=1697633914;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=o8f1sWoMenWEr9E6VK1GnKrRShbXo+TYIdd8C7jFeK0=;\n b=H0ziioDEinnqNnL2fGHAnxjsiyEqlUpHdiCfRWvQAU6JjJRGXMdUjpIa\n eOtb2a6PiE0IOemJ6ol/xpLqrt7Sa27x3HxLUWY+ul1OChaQjbwLvZt2q\n /aXsHwTONcc0WYu0z4JMg0B8DRdt+y+pQ3ZefHr0bcVrBJzkpfcj22ATb\n GPgGiJmliwU55fOBwvSXM2BVMyWP2OoC5OAK1a8HFdpNc1TNKH123x9Iq\n SSnFRlphkKWmPSd6MCu/wCEc2bK4MjwenME7SCZnkfLSPQ5/JuDMBBJf+\n ojWmldyjhBq5/HJS5USjVgdqPdaJTJ9d8DJxP2hW7vPWN9RJI5R1DZUwv w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10504\"; a=\"307179494\"",
            "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"307179494\"",
            "E=McAfee;i=\"6500,9779,10504\"; a=\"733614536\"",
            "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"733614536\""
        ],
        "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 v8 09/12] vdpa/ifc: change some driver logic",
        "Date": "Tue, 18 Oct 2022 20:07:48 +0800",
        "Message-Id": "<1666094871-25721-10-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1666094871-25721-1-git-send-email-andy.pei@intel.com>",
        "References": "<1661229305-240952-2-git-send-email-andy.pei@intel.com>\n <1666094871-25721-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": "Insert internal list element to internal list before\nregister vdpa device, in order to call vdpa ops during\nvdpa device registration.\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/vdpa/ifc/ifcvf_vdpa.c | 11 +++++++----\n 1 file changed, 7 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c\nindex c16e263..8dfd493 100644\n--- a/drivers/vdpa/ifc/ifcvf_vdpa.c\n+++ b/drivers/vdpa/ifc/ifcvf_vdpa.c\n@@ -1737,17 +1737,20 @@ struct rte_vdpa_dev_info dev_info[] = {\n \t}\n \tinternal->sw_lm = sw_fallback_lm;\n \n+\tpthread_mutex_lock(&internal_list_lock);\n+\tTAILQ_INSERT_TAIL(&internal_list, list, next);\n+\tpthread_mutex_unlock(&internal_list_lock);\n+\n \tinternal->vdev = rte_vdpa_register_device(&pci_dev->device,\n \t\t\t\tdev_info[internal->hw.device_type].ops);\n \tif (internal->vdev == NULL) {\n \t\tDRV_LOG(ERR, \"failed to register device %s\", pci_dev->name);\n+\t\tpthread_mutex_lock(&internal_list_lock);\n+\t\tTAILQ_REMOVE(&internal_list, list, next);\n+\t\tpthread_mutex_unlock(&internal_list_lock);\n \t\tgoto error;\n \t}\n \n-\tpthread_mutex_lock(&internal_list_lock);\n-\tTAILQ_INSERT_TAIL(&internal_list, list, next);\n-\tpthread_mutex_unlock(&internal_list_lock);\n-\n \trte_atomic32_set(&internal->started, 1);\n \tupdate_datapath(internal);\n \n",
    "prefixes": [
        "v8",
        "09/12"
    ]
}