Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/74130/?format=api
https://patches.dpdk.org/api/patches/74130/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200715171828.95887-6-amorenoz@redhat.com/", "project": { "id": 1, "url": "https://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": "<20200715171828.95887-6-amorenoz@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200715171828.95887-6-amorenoz@redhat.com", "date": "2020-07-15T17:18:28", "name": "[5/5] net/virtio: enable feature checking on virtio-user", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9b11d7f334401868f8c469b4dd21cf5033fdd1cb", "submitter": { "id": 1397, "url": "https://patches.dpdk.org/api/people/1397/?format=api", "name": "Adrian Moreno", "email": "amorenoz@redhat.com" }, "delegate": { "id": 2642, "url": "https://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200715171828.95887-6-amorenoz@redhat.com/mbox/", "series": [ { "id": 11059, "url": "https://patches.dpdk.org/api/series/11059/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11059", "date": "2020-07-15T17:18:23", "name": "Add support for GET/SET_STATUS on virtio-user pmd", "version": 1, "mbox": "https://patches.dpdk.org/series/11059/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/74130/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/74130/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 AA976A0542;\n\tWed, 15 Jul 2020 19:19:25 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B1DBA1BEA5;\n\tWed, 15 Jul 2020 19:18:58 +0200 (CEST)", "from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com\n [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 01A6D1BE90\n for <dev@dpdk.org>; Wed, 15 Jul 2020 19:18:53 +0200 (CEST)", "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-149-EgyCw3YzPRuVDQBvv3MRNg-1; Wed, 15 Jul 2020 13:18:49 -0400", "from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com\n [10.5.11.12])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 86FF380BCAB;\n Wed, 15 Jul 2020 17:18:48 +0000 (UTC)", "from amorenoz.users.ipa.redhat.com (ovpn-113-28.ams2.redhat.com\n [10.36.113.28])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 00E2860BF1;\n Wed, 15 Jul 2020 17:18:46 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1594833533;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=SEKOofi4qCm27Ivd9+Wz9xJhMN+2baE5fdKBe1wXMxw=;\n b=hjX1jKAeGO0ZnT4Xv8ZOGCNO3duVsqrCsNe5ujXiIm3/r8OHS5kR7hj49Y+iNWjD9SUq5k\n kbZYdfHn7Nn3A7CVL5s7WJvWjG1Ff6oewx0t9yskIRbqyNarq4fZ4KEryoF1PH7zCsB3Gg\n m7kuNy2dKjnROKe6b0f++C1WVzI55FQ=", "X-MC-Unique": "EgyCw3YzPRuVDQBvv3MRNg-1", "From": "Adrian Moreno <amorenoz@redhat.com>", "To": "dev@dpdk.org", "Cc": "maxime.coquelin@redhat.com, zhihong.wang@intel.com, amorenoz@redhat.com,\n chenbo.xia@intel.com", "Date": "Wed, 15 Jul 2020 19:18:28 +0200", "Message-Id": "<20200715171828.95887-6-amorenoz@redhat.com>", "In-Reply-To": "<20200715171828.95887-1-amorenoz@redhat.com>", "References": "<20200715171828.95887-1-amorenoz@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.12", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=US-ASCII", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 5/5] net/virtio: enable feature checking on\n\tvirtio-user", "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": "virtio 1.0 introduced a mechanism for the driver to verify that the\nfeature bits it sets are accepted by the device. This mechanism consists\nin setting the VIRTIO_STATUS_FEATURE_OK status bit and re-reading it,\nwhitch gives a chance for the device to clear it if the the features\nwere not accepted.\n\nThis is currently being done only in modern virtio-pci devices but since\nthe appropriate vhost-user messages have been added, it can also be done\nin virtio-user (vhost-user only).\n\nThis patch activates this mechanism on virtio-user.\n\nSigned-off-by: Adrian Moreno <amorenoz@redhat.com>\n---\n drivers/net/virtio/virtio_ethdev.c | 13 +++++++------\n 1 file changed, 7 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex dc0093bdf..9063bfeb2 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -1355,12 +1355,13 @@ virtio_negotiate_features(struct virtio_hw *hw, uint64_t req_features)\n \tPMD_INIT_LOG(DEBUG, \"features after negotiate = %\" PRIx64,\n \t\thw->guest_features);\n \n-\tif (hw->modern) {\n-\t\tif (!vtpci_with_feature(hw, VIRTIO_F_VERSION_1)) {\n-\t\t\tPMD_INIT_LOG(ERR,\n-\t\t\t\t\"VIRTIO_F_VERSION_1 features is not enabled.\");\n-\t\t\treturn -1;\n-\t\t}\n+\tif (hw->modern && !vtpci_with_feature(hw, VIRTIO_F_VERSION_1)) {\n+\t\tPMD_INIT_LOG(ERR,\n+\t\t\t\"VIRTIO_F_VERSION_1 features is not enabled.\");\n+\t\treturn -1;\n+\t}\n+\n+\tif (hw->modern || hw->virtio_user_dev) {\n \t\tvtpci_set_status(hw, VIRTIO_CONFIG_STATUS_FEATURES_OK);\n \t\tif (!(vtpci_get_status(hw) & VIRTIO_CONFIG_STATUS_FEATURES_OK)) {\n \t\t\tPMD_INIT_LOG(ERR,\n", "prefixes": [ "5/5" ] }{ "id": 74130, "url": "