Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72257/?format=api
http://patches.dpdk.org/api/patches/72257/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200626140441.1441763-12-maxime.coquelin@redhat.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": "<20200626140441.1441763-12-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200626140441.1441763-12-maxime.coquelin@redhat.com", "date": "2020-06-26T14:04:38", "name": "[v3,11/14] examples/vdpa: use new wrappers instead of ops", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "f64e6386e621bc882ef9622b3e6d9aa38ec91793", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.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/20200626140441.1441763-12-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 10634, "url": "http://patches.dpdk.org/api/series/10634/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10634", "date": "2020-06-26T14:04:28", "name": "vDPA API and framework rework", "version": 3, "mbox": "http://patches.dpdk.org/series/10634/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/72257/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/72257/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 36ED1A051C;\n\tFri, 26 Jun 2020 16:07:35 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F0A981C0D0;\n\tFri, 26 Jun 2020 16:06:20 +0200 (CEST)", "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id C79001C0D0\n for <dev@dpdk.org>; Fri, 26 Jun 2020 16:06:19 +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-328--okXECCoOxOVcUHDhTJGpA-1; Fri, 26 Jun 2020 10:06:17 -0400", "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com\n [10.5.11.15])\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 7073B10059A2;\n Fri, 26 Jun 2020 14:06:15 +0000 (UTC)", "from localhost.localdomain (unknown [10.36.110.7])\n by smtp.corp.redhat.com (Postfix) with ESMTP id F15845BAE1;\n Fri, 26 Jun 2020 14:06:08 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593180379;\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=JLZkL9jSYw3TtrKpuqdW7XmcVj7BEfJ7fqiCyUEtt5w=;\n b=CXgQIJWpfsgXCq35Ig+g0rT9xBQfqoN5jzV7VF7qbQBvmpwysTXeTQvY2sumHM4dZn/uCm\n 0p175CGKkepUqhBjaF/OMfcWp+6TSTqv82/VCa/YAgMoDY1yPvphZpWvoq9YKtz9PCT5Bu\n GXZiezvergTNtyaqSIl4/ro0tr4cByY=", "X-MC-Unique": "-okXECCoOxOVcUHDhTJGpA-1", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "matan@mellanox.com, xiao.w.wang@intel.com, zhihong.wang@intel.com,\n chenbo.xia@intel.com, david.marchand@redhat.com, amorenoz@redhat.com,\n viacheslavo@mellanox.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com,\n grive@u256.net, dev@dpdk.org", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>", "Date": "Fri, 26 Jun 2020 16:04:38 +0200", "Message-Id": "<20200626140441.1441763-12-maxime.coquelin@redhat.com>", "In-Reply-To": "<20200626140441.1441763-1-maxime.coquelin@redhat.com>", "References": "<20200626140441.1441763-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 11/14] examples/vdpa: use new wrappers instead\n\tof ops", "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": "Now that wrappers to query number of queues, Virtio\nfeatures and Vhost-user protocol features are available,\nlet's make the vDPA example to use them.\n\nAcked-by: Adrián Moreno <amorenoz@redhat.com>\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n examples/vdpa/main.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/examples/vdpa/main.c b/examples/vdpa/main.c\nindex 54f4940b31..d59c7fa9b4 100644\n--- a/examples/vdpa/main.c\n+++ b/examples/vdpa/main.c\n@@ -301,13 +301,13 @@ static void cmd_list_vdpa_devices_parsed(\n \t\tvdev = rte_vdpa_find_device_by_name(dev->name);\n \t\tif (!vdev)\n \t\t\tcontinue;\n-\t\tif (vdev->ops->get_queue_num(vdev, &queue_num) < 0) {\n+\t\tif (rte_vdpa_get_queue_num(vdev, &queue_num) < 0) {\n \t\t\tRTE_LOG(ERR, VDPA,\n \t\t\t\t\"failed to get vdpa queue number \"\n \t\t\t\t\"for device %s.\\n\", dev->name);\n \t\t\tcontinue;\n \t\t}\n-\t\tif (vdev->ops->get_features(vdev, &features) < 0) {\n+\t\tif (rte_vdpa_get_features(vdev, &features) < 0) {\n \t\t\tRTE_LOG(ERR, VDPA,\n \t\t\t\t\"failed to get vdpa features \"\n \t\t\t\t\"for device %s.\\n\", dev->name);\n", "prefixes": [ "v3", "11/14" ] }{ "id": 72257, "url": "