get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44752,
    "url": "http://patches.dpdk.org/api/patches/44752/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/153698884084.23049.3225944257155202776.stgit@T460/",
    "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": "<153698884084.23049.3225944257155202776.stgit@T460>",
    "list_archive_url": "https://inbox.dpdk.org/dev/153698884084.23049.3225944257155202776.stgit@T460",
    "date": "2018-09-15T05:20:40",
    "name": "[v3,3/5] vhost: handle unsupported message types in functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4201a795de2f49ce061b812cbe14c2478499a21e",
    "submitter": {
        "id": 1062,
        "url": "http://patches.dpdk.org/api/people/1062/?format=api",
        "name": "Nikolay Nikolaev",
        "email": "nicknickolaev@gmail.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/153698884084.23049.3225944257155202776.stgit@T460/mbox/",
    "series": [
        {
            "id": 1332,
            "url": "http://patches.dpdk.org/api/series/1332/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1332",
            "date": "2018-09-15T05:20:19",
            "name": "vhost: vhost_user.c code cleanup",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1332/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44752/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44752/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 461D55689;\n\tSat, 15 Sep 2018 07:20:47 +0200 (CEST)",
            "from mail-wr1-f67.google.com (mail-wr1-f67.google.com\n\t[209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 4C996532C\n\tfor <dev@dpdk.org>; Sat, 15 Sep 2018 07:20:43 +0200 (CEST)",
            "by mail-wr1-f67.google.com with SMTP id 20-v6so12339905wrb.12\n\tfor <dev@dpdk.org>; Fri, 14 Sep 2018 22:20:43 -0700 (PDT)",
            "from [127.0.1.1] ([82.146.27.14]) by smtp.gmail.com with ESMTPSA id\n\tj133-v6sm1996725wmd.12.2018.09.14.22.20.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 14 Sep 2018 22:20:42 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:from:to:cc:date:message-id:in-reply-to:references\n\t:user-agent:mime-version:content-transfer-encoding;\n\tbh=wSyLR66ibmeohSkyjhR+kIs69sar6ev7WV4Pnz8Oy5Y=;\n\tb=OHayr3e1ejOlHnAsCRH91rZUob31mx9Ulc/2UT9KoE9s7mOUByjJUbUbkouexeK4q/\n\tHzZd1DiHdOX7ylUCmZqZYEI5IjAzrvCJ3y85tl/dbEuG6xjFREdLVSa8RZsrJBazyKNM\n\tJIi4jTbANWSBFPCVDsBoqBb/+pevHfsL8tm3L6BJ/w+OGbpmHZHq3ha3P6iQMBh4oRi2\n\t8TWgPM3VRlGxwkha7nuXfcffPaXC5Imx2d1M2TcH8yBO1tM0dVE6S5OqSDYHgDfAWLbP\n\t2yhP1lWofWKkyx4PVNln9bd2AayA+x8YjNeOnktO7eeQY/1CnfnBodZQ5NvaPgzJ7B1c\n\tfrJQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=wSyLR66ibmeohSkyjhR+kIs69sar6ev7WV4Pnz8Oy5Y=;\n\tb=oKXKihcmkSMCDgDdZ2t6lNKNpTfjxQ9BZKKxT5pRCB1TuiJhpYjZZ4PzAkP6q94YRG\n\tNFVCN+TNmDVRvlCZRqQN/HGr1G0ddKNpqs/IiNS/CPVx9ZT/KAqyDBMQH+b3EdOuqJrV\n\tQ90ILJea90XVzGuKJMLJBaoXKXMpQnhbgbwSZMzDSsRvzsJkFQ7xkoO8w/OBjKYFeXP5\n\tEQAJXEol2rVVfEy2Pfwmz3szl4GQw+9DNT6jKk5hsZFGAC5ZXZ+ax45m8gbPni1AUy9V\n\tPdT3n2e3H8NM7Gmya6uGooOGjq3yTOs0XAcdi9U5ha3Kv2U3GAlUAw0xZjrbG2uEQnX9\n\tYcQg==",
        "X-Gm-Message-State": "APzg51BpBjM6mPa5A4/noPZ/qUfAfGSIaj/E/ESnlgyNhsAyKSmDhzSh\n\tJ+yEwse2UaBsqU8jCxIOPwTCpmXIExrn3Q==",
        "X-Google-Smtp-Source": "ANB0VdYIqwZmgvy9j32pLc5/2qnuThJi7sUkMZnuEFawnW5G76D6vtL7oOp7zkpd/FVB0Dd6Pdn73w==",
        "X-Received": "by 2002:adf:add0:: with SMTP id\n\tw74-v6mr12399288wrc.73.1536988842801; \n\tFri, 14 Sep 2018 22:20:42 -0700 (PDT)",
        "From": "Nikolay Nikolaev <nicknickolaev@gmail.com>",
        "To": "maxime.coquelin@redhat.com, tiwei.bie@intel.com, zhihong.wang@intel.com",
        "Cc": "dev@dpdk.org",
        "Date": "Sat, 15 Sep 2018 08:20:40 +0300",
        "Message-ID": "<153698884084.23049.3225944257155202776.stgit@T460>",
        "In-Reply-To": "<153698873346.23049.10966616323159180622.stgit@T460>",
        "References": "<153698873346.23049.10966616323159180622.stgit@T460>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Subject": "[dpdk-dev] [PATCH v3 3/5] vhost: handle unsupported message types\n\tin functions",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add new functions to handle the unsupported vhost message types:\n - vhost_user_set_vring_err\n - vhost_user_set_log_fd\n\nSigned-off-by: Nikolay Nikolaev <nicknickolaev@gmail.com>\n---\n lib/librte_vhost/vhost_user.c |   22 +++++++++++++++++-----\n 1 file changed, 17 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c\nindex 3a00d53cf..c38b0fd70 100644\n--- a/lib/librte_vhost/vhost_user.c\n+++ b/lib/librte_vhost/vhost_user.c\n@@ -1022,6 +1022,14 @@ vhost_user_set_vring_call(struct virtio_net *dev, VhostUserMsg *msg)\n \tvq->callfd = file.fd;\n }\n \n+static void vhost_user_set_vring_err(struct virtio_net *dev __rte_unused,\n+\t\t\tVhostUserMsg *msg)\n+{\n+\tif (!(msg->payload.u64 & VHOST_USER_VRING_NOFD_MASK))\n+\t\tclose(msg->fds[0]);\n+\tRTE_LOG(INFO, VHOST_CONFIG, \"not implemented\\n\");\n+}\n+\n static int\n vhost_user_set_vring_kick(struct virtio_net **pdev, VhostUserMsg *msg)\n {\n@@ -1259,6 +1267,13 @@ vhost_user_set_log_base(struct virtio_net *dev, VhostUserMsg *msg)\n \treturn 0;\n }\n \n+static void\n+vhost_user_set_log_fd(struct virtio_net *dev __rte_unused, VhostUserMsg *msg)\n+{\n+\tclose(msg->fds[0]);\n+\tRTE_LOG(INFO, VHOST_CONFIG, \"not implemented.\\n\");\n+}\n+\n /*\n  * An rarp packet is constructed and broadcasted to notify switches about\n  * the new location of the migrated VM, so that packets from outside will\n@@ -1703,8 +1718,7 @@ vhost_user_msg_handler(int vid, int fd)\n \t\tsend_vhost_reply(fd, &msg);\n \t\tbreak;\n \tcase VHOST_USER_SET_LOG_FD:\n-\t\tclose(msg.fds[0]);\n-\t\tRTE_LOG(INFO, VHOST_CONFIG, \"not implemented.\\n\");\n+\t\tvhost_user_set_log_fd(dev, &msg);\n \t\tbreak;\n \n \tcase VHOST_USER_SET_VRING_NUM:\n@@ -1732,9 +1746,7 @@ vhost_user_msg_handler(int vid, int fd)\n \t\tbreak;\n \n \tcase VHOST_USER_SET_VRING_ERR:\n-\t\tif (!(msg.payload.u64 & VHOST_USER_VRING_NOFD_MASK))\n-\t\t\tclose(msg.fds[0]);\n-\t\tRTE_LOG(INFO, VHOST_CONFIG, \"not implemented\\n\");\n+\t\tvhost_user_set_vring_err(dev, &msg);\n \t\tbreak;\n \n \tcase VHOST_USER_GET_QUEUE_NUM:\n",
    "prefixes": [
        "v3",
        "3/5"
    ]
}