Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72243/?format=api
http://patches.dpdk.org/api/patches/72243/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200626132712.1437673-13-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": "<20200626132712.1437673-13-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200626132712.1437673-13-maxime.coquelin@redhat.com", "date": "2020-06-26T13:27:10", "name": "[v3,12/14] examples/vdpa: remove useless device count", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "39b6f844b0ac9f3617c2888fdd4c3a5a8fc7ce46", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200626132712.1437673-13-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 10633, "url": "http://patches.dpdk.org/api/series/10633/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10633", "date": "2020-06-26T13:26:58", "name": "vDPA API and framework rework", "version": 3, "mbox": "http://patches.dpdk.org/series/10633/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/72243/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/72243/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 79D65A051C;\n\tFri, 26 Jun 2020 15:29:57 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C34BA1C01B;\n\tFri, 26 Jun 2020 15:29:12 +0200 (CEST)", "from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com\n [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 77DCA1C00D\n for <dev@dpdk.org>; Fri, 26 Jun 2020 15:29:01 +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-70-xPCtHDaPOCCGZEwUlD1MUQ-1; Fri, 26 Jun 2020 09:28:58 -0400", "from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com\n [10.5.11.16])\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 589C6800D5C;\n Fri, 26 Jun 2020 13:28:57 +0000 (UTC)", "from localhost.localdomain (unknown [10.36.110.7])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 1F2EF5C6C0;\n Fri, 26 Jun 2020 13:28:53 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593178140;\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=TNcauoDqg+M7kAXQV7xZiG2HCDLQPB99jJWXcUhqHZ0=;\n b=fJTCMAdKAAvm34XPs3MlrQrUcJLL0B2Z5yBUxft3CbES62tidKzN/2arXgOQP3wVhPdgeq\n KJqrUiEo3alc8RKbvKslzWhejju3iV8xNn57LY/ZgybB4yN7+hJy7J9iLL3Bu5h3Ls1xpp\n HTleWh7Y9+RIcmc7zqsIKBlTivmu9ds=", "X-MC-Unique": "xPCtHDaPOCCGZEwUlD1MUQ-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 15:27:10 +0200", "Message-Id": "<20200626132712.1437673-13-maxime.coquelin@redhat.com>", "In-Reply-To": "<20200626132712.1437673-1-maxime.coquelin@redhat.com>", "References": "<20200626132712.1437673-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.16", "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com", "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 v3 12/14] examples/vdpa: remove useless device\n\tcount", "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": "The VDPA example now uses the vDPA class iterator, so\nknowing the number of available devices beforehand is\nno longer needed.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n examples/vdpa/main.c | 9 ++-------\n 1 file changed, 2 insertions(+), 7 deletions(-)", "diff": "diff --git a/examples/vdpa/main.c b/examples/vdpa/main.c\nindex d59c7fa9b4..2345f98665 100644\n--- a/examples/vdpa/main.c\n+++ b/examples/vdpa/main.c\n@@ -38,7 +38,6 @@ struct vdpa_port {\n static struct vdpa_port vports[MAX_VDPA_SAMPLE_PORTS];\n \n static char iface[MAX_PATH_LEN];\n-static int dev_total;\n static int devcnt;\n static int interactive;\n static int client_mode;\n@@ -227,7 +226,7 @@ static void\n vdpa_sample_quit(void)\n {\n \tint i;\n-\tfor (i = 0; i < RTE_MIN(MAX_VDPA_SAMPLE_PORTS, dev_total); i++) {\n+\tfor (i = 0; i < RTE_MIN(MAX_VDPA_SAMPLE_PORTS, devcnt); i++) {\n \t\tif (vports[i].ifname[0] != '\\0')\n \t\t\tclose_vdpa(&vports[i]);\n \t}\n@@ -399,7 +398,7 @@ static void cmd_device_stats_parsed(void *parsed_result, struct cmdline *cl,\n \t\t\tres->bdf);\n \t\treturn;\n \t}\n-\tfor (i = 0; i < RTE_MIN(MAX_VDPA_SAMPLE_PORTS, dev_total); i++) {\n+\tfor (i = 0; i < RTE_MIN(MAX_VDPA_SAMPLE_PORTS, devcnt); i++) {\n \t\tif (vports[i].dev == vdev) {\n \t\t\tvport = &vports[i];\n \t\t\tbreak;\n@@ -536,10 +535,6 @@ main(int argc, char *argv[])\n \targc -= ret;\n \targv += ret;\n \n-\tdev_total = rte_vdpa_get_device_num();\n-\tif (dev_total <= 0)\n-\t\trte_exit(EXIT_FAILURE, \"No available vdpa device found\\n\");\n-\n \tsignal(SIGINT, signal_handler);\n \tsignal(SIGTERM, signal_handler);\n \n", "prefixes": [ "v3", "12/14" ] }{ "id": 72243, "url": "