Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/62497/?format=api
http://patches.dpdk.org/api/patches/62497/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191106090250.104135-1-yong.liu@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": "<20191106090250.104135-1-yong.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191106090250.104135-1-yong.liu@intel.com", "date": "2019-11-06T09:02:50", "name": "[v6] net/virtio-user: fix failures when setting filters", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "cc27236817987a4815feb8621ed0430e26bb7a42", "submitter": { "id": 17, "url": "http://patches.dpdk.org/api/people/17/?format=api", "name": "Marvin Liu", "email": "yong.liu@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/20191106090250.104135-1-yong.liu@intel.com/mbox/", "series": [ { "id": 7268, "url": "http://patches.dpdk.org/api/series/7268/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7268", "date": "2019-11-06T09:02:50", "name": "[v6] net/virtio-user: fix failures when setting filters", "version": 6, "mbox": "http://patches.dpdk.org/series/7268/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/62497/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/62497/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 7E418A04A2;\n\tWed, 6 Nov 2019 02:24:25 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1697C1BFDD;\n\tWed, 6 Nov 2019 02:24:25 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 3BAC51BFC8;\n Wed, 6 Nov 2019 02:24:22 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 05 Nov 2019 17:24:22 -0800", "from npg-dpdk-virtual-marvin-dev.sh.intel.com ([10.67.119.142])\n by orsmga007.jf.intel.com with ESMTP; 05 Nov 2019 17:24:20 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.68,272,1569308400\"; d=\"scan'208\";a=\"192298720\"", "From": "Marvin Liu <yong.liu@intel.com>", "To": "maxime.coquelin@redhat.com,\n\ttiwei.bie@intel.com,\n\tzhihong.wang@intel.com", "Cc": "dev@dpdk.org,\n\tMarvin Liu <yong.liu@intel.com>,\n\tstable@dpdk.org", "Date": "Wed, 6 Nov 2019 17:02:50 +0800", "Message-Id": "<20191106090250.104135-1-yong.liu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20191030152516.34615-1-yong.liu@intel.com>", "References": "<20191030152516.34615-1-yong.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH v6] net/virtio-user: fix failures when setting\n\tfilters", "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": "As doc mentioned, Rx/Mac/vlan filters are all supported by best effort.\nThese control commands should return success.\n\nFixes: f9b9d1a55775 (\"net/virtio-user: add multiple queues in device emulation\")\nCc: stable@dpdk.org\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>\n---\n drivers/net/virtio/virtio_user/virtio_user_dev.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c\nindex 1c575d0cd..a4400e772 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c\n@@ -613,6 +613,10 @@ virtio_user_handle_ctrl_msg(struct virtio_user_dev *dev, struct vring *vring,\n \n \t\tqueues = *(uint16_t *)(uintptr_t)vring->desc[idx_data].addr;\n \t\tstatus = virtio_user_handle_mq(dev, queues);\n+\t} else if (hdr->class == VIRTIO_NET_CTRL_RX ||\n+\t\t hdr->class == VIRTIO_NET_CTRL_MAC ||\n+\t\t hdr->class == VIRTIO_NET_CTRL_VLAN) {\n+\t\tstatus = 0;\n \t}\n \n \t/* Update status */\n@@ -664,6 +668,10 @@ virtio_user_handle_ctrl_msg_packed(struct virtio_user_dev *dev,\n \t\tqueues = *(uint16_t *)(uintptr_t)\n \t\t\t\tvring->desc[idx_data].addr;\n \t\tstatus = virtio_user_handle_mq(dev, queues);\n+\t} else if (hdr->class == VIRTIO_NET_CTRL_RX ||\n+\t\t hdr->class == VIRTIO_NET_CTRL_MAC ||\n+\t\t hdr->class == VIRTIO_NET_CTRL_VLAN) {\n+\t\tstatus = 0;\n \t}\n \n \t/* Update status */\n", "prefixes": [ "v6" ] }{ "id": 62497, "url": "