get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105079,
    "url": "http://patches.dpdk.org/api/patches/105079/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1639369785-103190-1-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": "<1639369785-103190-1-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1639369785-103190-1-git-send-email-andy.pei@intel.com",
    "date": "2021-12-13T04:29:45",
    "name": "[3/3] vhost: add some log for vhost message VHOST_USER_SET_VRING_BASE",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "ba5987148a62a09d3adfa1953a0a131f51797080",
    "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/1639369785-103190-1-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 20917,
            "url": "http://patches.dpdk.org/api/series/20917/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20917",
            "date": "2021-12-13T04:29:06",
            "name": "[1/3] vdpa/ifc: fix log info mismatch",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/20917/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/105079/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/105079/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 1BD2EA0032;\n\tMon, 13 Dec 2021 06:15:42 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 082084113D;\n\tMon, 13 Dec 2021 06:15:42 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id ABC23410F7\n for <dev@dpdk.org>; Mon, 13 Dec 2021 06:15:40 +0100 (CET)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Dec 2021 21:15:40 -0800",
            "from dpdk-dipei.sh.intel.com ([10.67.111.91])\n by orsmga003.jf.intel.com with ESMTP; 12 Dec 2021 21:15:39 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1639372540; x=1670908540;\n h=from:to:cc:subject:date:message-id;\n bh=y34xQcQXiceXzsJTl+40LUUERRlH/lkkYq0POVk/Zrc=;\n b=N6zwtsCniqFAZucegXfESqmBhA2wUZ4Ec1NW07WNqj005CB+WCkiWnBL\n 5+xlIFPk3S++MGGEs9cmpAAI+/1K8xVYZ/2ir9vDrJ4mK/74KOhhBuF+x\n MA8SjSqkBVTCfeTMkrP0jyH0nrSJEWrqxXPnBXshZVD7ZizLirOnuVAO8\n 1ognPtAgjlnaAqqzMcboxFsay8zGRIZYqrCJxjO11RANa+2YbH7QAKUhy\n yIm1kWUbr7TuwUN+7zlpA7lBktd9gw6KrJbemMxLnafjRLGhsM87H9jRG\n FBBQ93HDRi2PwKl6WxekRpynS9knElv3A/nVrY0jVBoxafVvqIsAfaNr4 Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10196\"; a=\"225939901\"",
            "E=Sophos;i=\"5.88,201,1635231600\"; d=\"scan'208\";a=\"225939901\"",
            "E=Sophos;i=\"5.88,201,1635231600\"; d=\"scan'208\";a=\"463254924\""
        ],
        "X-ExtLoop1": "1",
        "From": "Andy Pei <andy.pei@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "andy.pei@intel.com,\n\tchenbo.xia@intel.com,\n\tmaxime.coquelin@redhat.com",
        "Subject": "[PATCH 3/3] vhost: add some log for vhost message\n VHOST_USER_SET_VRING_BASE",
        "Date": "Mon, 13 Dec 2021 12:29:45 +0800",
        "Message-Id": "<1639369785-103190-1-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "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": "Usually the last avail index and last used index is 0, but for target\ndevice of live migration, the last avail index and last used index is\nnot 0. So I think some log is helpful.\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n lib/vhost/vhost_user.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c\nindex a781346..3cb13fb 100644\n--- a/lib/vhost/vhost_user.c\n+++ b/lib/vhost/vhost_user.c\n@@ -973,6 +973,11 @@\n \t\tvq->last_avail_idx = msg->payload.state.num;\n \t}\n \n+\tVHOST_LOG_CONFIG(INFO,\n+\t\t\"vring base idx:%d last_used_idx:%u last_avail_idx:%u.\\n\",\n+\t\tmsg->payload.state.index, vq->last_used_idx,\n+\t\tvq->last_avail_idx);\n+\n \treturn RTE_VHOST_MSG_RESULT_OK;\n }\n \n",
    "prefixes": [
        "3/3"
    ]
}