Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/65302/?format=api
http://patches.dpdk.org/api/patches/65302/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200129101937.57243-1-roy.fan.zhang@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": "<20200129101937.57243-1-roy.fan.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200129101937.57243-1-roy.fan.zhang@intel.com", "date": "2020-01-29T10:19:37", "name": "vhost/crypto: fix missed user protocol flag", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "baeef03937323f693f2f453e58f260db8566d302", "submitter": { "id": 304, "url": "http://patches.dpdk.org/api/people/304/?format=api", "name": "Fan Zhang", "email": "roy.fan.zhang@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/20200129101937.57243-1-roy.fan.zhang@intel.com/mbox/", "series": [ { "id": 8336, "url": "http://patches.dpdk.org/api/series/8336/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8336", "date": "2020-01-29T10:19:37", "name": "vhost/crypto: fix missed user protocol flag", "version": 1, "mbox": "http://patches.dpdk.org/series/8336/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/65302/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/65302/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 81032A0531;\n\tWed, 29 Jan 2020 11:20:23 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 055781BFC7;\n\tWed, 29 Jan 2020 11:20:23 +0100 (CET)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id D36041BFC6;\n Wed, 29 Jan 2020 11:20:21 +0100 (CET)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 29 Jan 2020 02:19:43 -0800", "from silpixa00398673.ir.intel.com (HELO\n silpixa00398673.ger.corp.intel.com) ([10.237.223.136])\n by orsmga005.jf.intel.com with ESMTP; 29 Jan 2020 02:19:41 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,377,1574150400\"; d=\"scan'208\";a=\"401946862\"", "From": "Fan Zhang <roy.fan.zhang@intel.com>", "To": "dev@dpdk.org", "Cc": "maxime.coquelin@redhat.com, Fan Zhang <roy.fan.zhang@intel.com>,\n stable@dpdk.org", "Date": "Wed, 29 Jan 2020 10:19:37 +0000", "Message-Id": "<20200129101937.57243-1-roy.fan.zhang@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20191126095410.72395-1-roy.fan.zhang@intel.com>", "References": "<20191126095410.72395-1-roy.fan.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] vhost/crypto: fix missed user protocol flag", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fixes: 939066d96563 (\"vhost/crypto: add public function implementation\")\nCc: stable@dpdk.org\n\nThis patch fixes the vhost crypto missed\n\"VHOST_USER_PROTOCOL_F_CONFIG\" flag problem during initialization.\nNewer Qemu version requires this feature enabled.\n\nSigned-off-by: Fan Zhang <roy.fan.zhang@intel.com>\n---\n lib/librte_vhost/rte_vhost.h | 5 +++++\n lib/librte_vhost/vhost_crypto.c | 3 ++-\n 2 files changed, 7 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h\nindex 7b5dc87c2..ad6e71702 100644\n--- a/lib/librte_vhost/rte_vhost.h\n+++ b/lib/librte_vhost/rte_vhost.h\n@@ -68,6 +68,10 @@ extern \"C\" {\n #define VHOST_USER_PROTOCOL_F_PAGEFAULT 8\n #endif\n \n+#ifndef VHOST_USER_PROTOCOL_F_CONFIG\n+#define VHOST_USER_PROTOCOL_F_CONFIG 9\n+#endif\n+\n #ifndef VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD\n #define VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD 10\n #endif\n@@ -85,6 +89,7 @@ extern \"C\" {\n #define VHOST_USER_F_PROTOCOL_FEATURES\t30\n #endif\n \n+\n /**\n * Information relating to memory regions including offsets to\n * addresses in QEMUs memory file.\ndiff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c\nindex 684fddc30..242fa5333 100644\n--- a/lib/librte_vhost/vhost_crypto.c\n+++ b/lib/librte_vhost/vhost_crypto.c\n@@ -40,7 +40,8 @@\n \t\t(1 << VIRTIO_RING_F_EVENT_IDX) |\t\t\t\\\n \t\t(1 << VIRTIO_CRYPTO_SERVICE_CIPHER) |\t\t\t\\\n \t\t(1 << VIRTIO_CRYPTO_SERVICE_MAC) |\t\t\t\\\n-\t\t(1 << VIRTIO_NET_F_CTRL_VQ))\n+\t\t(1 << VIRTIO_NET_F_CTRL_VQ) |\t\t\t\t\\\n+\t\t(1 << VHOST_USER_PROTOCOL_F_CONFIG))\n \n #define IOVA_TO_VVA(t, r, a, l, p)\t\t\t\t\t\\\n \t((t)(uintptr_t)vhost_iova_to_vva(r->dev, r->vq, a, l, p))\n", "prefixes": [] }{ "id": 65302, "url": "