Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/45176/?format=api
http://patches.dpdk.org/api/patches/45176/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/153765100349.29126.292928643166129355.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": "<153765100349.29126.292928643166129355.stgit@T460>", "list_archive_url": "https://inbox.dpdk.org/dev/153765100349.29126.292928643166129355.stgit@T460", "date": "2018-09-22T21:16:43", "name": "[v4,3/5] vhost: handle unsupported message types in functions", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6d0eb15ba6ee5bf84516f43892a0b19222553cae", "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/153765100349.29126.292928643166129355.stgit@T460/mbox/", "series": [ { "id": 1455, "url": "http://patches.dpdk.org/api/series/1455/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1455", "date": "2018-09-22T21:16:23", "name": "vhost: vhost_user.c code cleanup", "version": 4, "mbox": "http://patches.dpdk.org/series/1455/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/45176/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/45176/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 00CA44C93;\n\tSat, 22 Sep 2018 23:16:47 +0200 (CEST)", "from mail-wr1-f66.google.com (mail-wr1-f66.google.com\n\t[209.85.221.66]) by dpdk.org (Postfix) with ESMTP id D9CD54CA7\n\tfor <dev@dpdk.org>; Sat, 22 Sep 2018 23:16:45 +0200 (CEST)", "by mail-wr1-f66.google.com with SMTP id e1-v6so16041356wrt.3\n\tfor <dev@dpdk.org>; Sat, 22 Sep 2018 14:16:45 -0700 (PDT)", "from [127.0.1.1] ([82.146.27.14]) by smtp.gmail.com with ESMTPSA id\n\ts131-v6sm14184940wmf.2.2018.09.22.14.16.44\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 22 Sep 2018 14:16:44 -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=xlNkP16vTsVBNdVBiKpcF81N1Bc6u5DP2AlK37efpxI=;\n\tb=Tc76SrCMHJLrfrGRphHEPOqU3wR8qx7olO0ccompxQJbKC+HeqItKDC91TZIjBo0qL\n\t78wD+Q4yzmQv61vEXMrQEpC60P2UH6Vp6+oaFYsv53MpNGxWPYine/ntD8LHk9Jmtr9u\n\t1E4uEhzBeOzLD4M6FPDSHTugEQQS1NaPAgwOcZK4ip7Q7EjILSZT1DhV3lljBNuH32Lj\n\tPmQKKuBV00IzfHXTavzQnryJcIMALej3O1dUx7eWh97raXgt7irYJV7AjsLlAsYUSTvO\n\tr05QZq6CensQiwEwHxx9Qdkv1q73tSHUHYZSW+l3P/bVc9iuQfzhGhotjpy2Ksu2jn6P\n\tvueA==", "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=xlNkP16vTsVBNdVBiKpcF81N1Bc6u5DP2AlK37efpxI=;\n\tb=QLjz0j5WD9YwUHQ+0Esj1dij2ti+xhtbQOV7/c6Pk/jqbFAo3WgGE9xrn8YzZHp4Oh\n\tUO2mHUkevMknu1l5gu9an/eUL0WgrxT6myAKFKKxj07LfI2/hWrYPuJvjhttF9y8T8U/\n\thSB5+6onEIYtHfq0p6RYtnFLJpqAfftmO30jhaBjVLLRw2uySJ1cv5NI1+r34/J43JZv\n\t3pwEhl8+EF/qB8Vp5o71fx57I/w2g1JHBpPY9A5sSdS/j9PcMO0Bi71QlMSIfFrKmHXk\n\tMhZ+3uqiHWO81mP3djFkYOHIoc7nbpCSGZR+wYstYEl19LyVrMYTRVPrq/wRWJE1v30Y\n\t4FOA==", "X-Gm-Message-State": "ABuFfogeOs2pGBzz6drkwUlTMr7riq6CDphpwFffke37tbuvqgDxcjUm\n\tv/7lHznzpnMA3Cnkpg71+12bYwd0Gng+yQ==", "X-Google-Smtp-Source": "ACcGV63OFkOxHLi/niR/sbs8lcvjwQyMAtzRb6hqy6dPUmjqeiB01Ujbo4LyERkodDleuPkrepYmGA==", "X-Received": "by 2002:adf:f14e:: with SMTP id\n\ty14-v6mr2951695wro.29.1537651005281; \n\tSat, 22 Sep 2018 14:16:45 -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": "Sun, 23 Sep 2018 00:16:43 +0300", "Message-ID": "<153765100349.29126.292928643166129355.stgit@T460>", "In-Reply-To": "<153765091094.29126.1031571146095035538.stgit@T460>", "References": "<153765091094.29126.1031571146095035538.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 v4 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 b20aa6adc..1627d594e 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, struct 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, struct VhostUserMsg *msg)\n {\n@@ -1259,6 +1267,13 @@ vhost_user_set_log_base(struct virtio_net *dev, struct 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@@ -1704,8 +1719,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@@ -1733,9 +1747,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": [ "v4", "3/5" ] }{ "id": 45176, "url": "