Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/113185/?format=api
http://patchwork.dpdk.org/api/patches/113185/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1655819191-124476-1-git-send-email-andy.pei@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1655819191-124476-1-git-send-email-andy.pei@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1655819191-124476-1-git-send-email-andy.pei@intel.com", "date": "2022-06-21T13:46:31", "name": "vdpa/ifc: fix vhost message size check issue", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "eedfdf724e6d824f2b298dee4d2ae4497a6feae8", "submitter": { "id": 1185, "url": "http://patchwork.dpdk.org/api/people/1185/?format=api", "name": "Pei, Andy", "email": "andy.pei@intel.com" }, "delegate": { "id": 2642, "url": "http://patchwork.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1655819191-124476-1-git-send-email-andy.pei@intel.com/mbox/", "series": [ { "id": 23662, "url": "http://patchwork.dpdk.org/api/series/23662/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=23662", "date": "2022-06-21T13:46:31", "name": "vdpa/ifc: fix vhost message size check issue", "version": 1, "mbox": "http://patchwork.dpdk.org/series/23662/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/113185/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/113185/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 29CCDA0545;\n\tTue, 21 Jun 2022 16:37:10 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B573F4069C;\n\tTue, 21 Jun 2022 16:37:09 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id D2B5D40151\n for <dev@dpdk.org>; Tue, 21 Jun 2022 16:37:07 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jun 2022 07:37:06 -0700", "from dpdk-dipei.sh.intel.com ([10.67.110.238])\n by fmsmga002.fm.intel.com with ESMTP; 21 Jun 2022 07:37:05 -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=1655822228; x=1687358228;\n h=from:to:cc:subject:date:message-id;\n bh=LuhB50OiwBjKtXFEBoU9niyBCLbI6tKFPGuvzayL9NQ=;\n b=lEzncMZ03/2j0hMOAZ5Ecq4l3sgb0oRpRvSs3Dnw6RMOg3YQ9ctfeveZ\n NNbAQiegAmU4fcs9RlfzD2jOKB6t/QFLXZuZu5FXVfsC61GVmHS5t1BXg\n ThTXFX5tXBvnV35OB9AYa46XKdxxncMM3o49pjjMqKt5Uwu6tbpz6Vgpm\n v8uK6jd0x1PEbhX2i7WVKAC6XiM98FMjgHFXfdoW6XHKxNNKLdY4C5BH2\n QF7A06DkAvcEzGcvITDNIdqYw2m1iRS0m8nBPHbMbCxipiL87mh6rV53c\n wYCH++U8RXn7WwiZfQzd9kKRK79mlTEbwQiCfKm4Zga5Y6a+Hnjig84NJ A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10384\"; a=\"366457041\"", "E=Sophos;i=\"5.92,209,1650956400\"; d=\"scan'208\";a=\"366457041\"", "E=Sophos;i=\"5.92,209,1650956400\"; d=\"scan'208\";a=\"689965474\"" ], "X-ExtLoop1": "1", "From": "Andy Pei <andy.pei@intel.com>", "To": "dev@dpdk.org", "Cc": "chenbo.xia@intel.com, maxime.coquelin@redhat.com, rosen.xu@intel.com,\n qimaix.xiao@intel.com", "Subject": "[PATCH] vdpa/ifc: fix vhost message size check issue", "Date": "Tue, 21 Jun 2022 21:46:31 +0800", "Message-Id": "<1655819191-124476-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": "For vhost message VHOST_USER_GET_CONFIG, we do not check\npayload size in vhost lib, we check payload size in driver\nspecific ops.\nFor ifc vdpa driver, we just need to make sure payload size\nis not smaller than sizeof(struct virtio_blk_config).\n\nFixes: 856d03bcdc54 (\"vdpa/ifc: add block operations\")\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/vdpa/ifc/ifcvf_vdpa.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c\nindex 8bc971c..ac42de9 100644\n--- a/drivers/vdpa/ifc/ifcvf_vdpa.c\n+++ b/drivers/vdpa/ifc/ifcvf_vdpa.c\n@@ -1400,7 +1400,7 @@ struct rte_vdpa_dev_info {\n \tuint64_t capacity = 0;\n \tuint8_t *byte;\n \n-\tif (size != sizeof(struct virtio_blk_config)) {\n+\tif (size < sizeof(struct virtio_blk_config)) {\n \t\tDRV_LOG(ERR, \"Invalid len: %u, required: %u\",\n \t\t\tsize, (uint32_t)sizeof(struct virtio_blk_config));\n \t\treturn -1;\n", "prefixes": [] }{ "id": 113185, "url": "