Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72128/?format=api
https://patches.dpdk.org/api/patches/72128/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200624122701.1369327-13-maxime.coquelin@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": "<20200624122701.1369327-13-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200624122701.1369327-13-maxime.coquelin@redhat.com", "date": "2020-06-24T12:26:56", "name": "[v2,11/12] examples/vdpa: remove useless device count", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "39b6f844b0ac9f3617c2888fdd4c3a5a8fc7ce46", "submitter": { "id": 512, "url": "https://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@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/20200624122701.1369327-13-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 10586, "url": "https://patches.dpdk.org/api/series/10586/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10586", "date": "2020-06-24T12:26:44", "name": "vDPA API and framework rework", "version": 2, "mbox": "https://patches.dpdk.org/series/10586/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/72128/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/72128/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 CC7D9A0350;\n\tWed, 24 Jun 2020 14:29:38 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E19441D965;\n\tWed, 24 Jun 2020 14:28:27 +0200 (CEST)", "from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com\n [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 336891D92E\n for <dev@dpdk.org>; Wed, 24 Jun 2020 14:28:26 +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-39-Hv8xuIo4P8iMldUui66R6g-1; Wed, 24 Jun 2020 08:28:24 -0400", "from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com\n [10.5.11.13])\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 BD577800597;\n Wed, 24 Jun 2020 12:28:22 +0000 (UTC)", "from localhost.localdomain (unknown [10.36.110.7])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 5F48E891D8;\n Wed, 24 Jun 2020 12:28:14 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593001705;\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=SxE1cBkhNxenOt+nU4aOYA9NMb28V393Iv1gHa4G/N2WYJVcFRHvBxKMl81OGjJ+JZWH6l\n l09jig7VFRN8hygycEV7UaXLxT1KXYhAAq0RxYhBdbtredSo7TsScwMBn+IwfgAMqHoH28\n nCQpsZMJb0xlXH3VLiiD3HbqNUtAyqA=", "X-MC-Unique": "Hv8xuIo4P8iMldUui66R6g-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": "Wed, 24 Jun 2020 14:26:56 +0200", "Message-Id": "<20200624122701.1369327-13-maxime.coquelin@redhat.com>", "In-Reply-To": "<20200624122701.1369327-1-maxime.coquelin@redhat.com>", "References": "<20200624122701.1369327-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.13", "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 v2 11/12] 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": [ "v2", "11/12" ] }{ "id": 72128, "url": "