Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138851/?format=api
http://patchwork.dpdk.org/api/patches/138851/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240327094032.2400951-2-maxime.coquelin@redhat.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20240327094032.2400951-2-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240327094032.2400951-2-maxime.coquelin@redhat.com", "date": "2024-03-27T09:40:29", "name": "[1/4] net/virtio: rename Virtio-user queue iterator", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e1eb1d79544afcfee1ac4c0784279c9f83d75f0e", "submitter": { "id": 512, "url": "http://patchwork.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": { "id": 2642, "url": "http://patchwork.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240327094032.2400951-2-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 31627, "url": "http://patchwork.dpdk.org/api/series/31627/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31627", "date": "2024-03-27T09:40:28", "name": "Virtio-user queues setup fixes", "version": 1, "mbox": "http://patchwork.dpdk.org/series/31627/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/138851/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/138851/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 598C743D66;\n\tWed, 27 Mar 2024 10:40:50 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 267D340E6E;\n\tWed, 27 Mar 2024 10:40:48 +0100 (CET)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by mails.dpdk.org (Postfix) with ESMTP id A23164029F\n for <dev@dpdk.org>; Wed, 27 Mar 2024 10:40:44 +0100 (CET)", "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-350-MA9G2RnoOEWC2Y93g59xxA-1; Wed,\n 27 Mar 2024 05:40:42 -0400", "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com\n [10.11.54.5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7E80738157A8;\n Wed, 27 Mar 2024 09:40:42 +0000 (UTC)", "from max-p1.redhat.com (unknown [10.39.208.27])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 15BBD1074E;\n Wed, 27 Mar 2024 09:40:40 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1711532444;\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=pCNI8mll5OoEItNXoreyyTyewsh9Xw84tzRnAJwAIRk=;\n b=F9VYoHzHgTghLWtKH0NvEjrWaWpAyANR3ukplm+XAeNcVa+665IGAWzvmFZyZuNIsGZUM+\n f3KW4xVIhu5S9Jo/deEA6abwWNUuw5O8xYn5xL88us2tJjcZZqUazioBVGkeVuPLsnkh4H\n dqE1jSW9YHjUMTRshQqdlpzTPQy7Iq8=", "X-MC-Unique": "MA9G2RnoOEWC2Y93g59xxA-1", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "dev@dpdk.org,\n\tdavid.marchand@redhat.com,\n\tchenbox@nvidia.com", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>", "Subject": "[PATCH 1/4] net/virtio: rename Virtio-user queue iterator", "Date": "Wed, 27 Mar 2024 10:40:29 +0100", "Message-ID": "<20240327094032.2400951-2-maxime.coquelin@redhat.com>", "In-Reply-To": "<20240327094032.2400951-1-maxime.coquelin@redhat.com>", "References": "<20240327094032.2400951-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.5", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "This is a preliminary rework to prepare for iterating\nover queues for non-setup operations.\n\nAlso, remove the error log that does not provide much\ninformation given the callbacks already provide one.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/net/virtio/virtio_user/virtio_user_dev.c | 13 +++++--------\n 1 file changed, 5 insertions(+), 8 deletions(-)", "diff": "diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c\nindex 4fdfe70e7c..c3d44880f5 100644\n--- a/drivers/net/virtio/virtio_user/virtio_user_dev.c\n+++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c\n@@ -129,7 +129,7 @@ virtio_user_kick_queue(struct virtio_user_dev *dev, uint32_t queue_sel)\n }\n \n static int\n-virtio_user_queue_setup(struct virtio_user_dev *dev,\n+virtio_user_foreach_queue(struct virtio_user_dev *dev,\n \t\t\tint (*fn)(struct virtio_user_dev *, uint32_t))\n {\n \tuint32_t i, nr_vq;\n@@ -138,12 +138,9 @@ virtio_user_queue_setup(struct virtio_user_dev *dev,\n \tif (dev->hw_cvq)\n \t\tnr_vq++;\n \n-\tfor (i = 0; i < nr_vq; i++) {\n-\t\tif (fn(dev, i) < 0) {\n-\t\t\tPMD_DRV_LOG(ERR, \"(%s) setup VQ %u failed\", dev->path, i);\n+\tfor (i = 0; i < nr_vq; i++)\n+\t\tif (fn(dev, i) < 0)\n \t\t\treturn -1;\n-\t\t}\n-\t}\n \n \treturn 0;\n }\n@@ -157,7 +154,7 @@ virtio_user_dev_set_features(struct virtio_user_dev *dev)\n \tpthread_mutex_lock(&dev->mutex);\n \n \t/* Step 0: tell vhost to create queues */\n-\tif (virtio_user_queue_setup(dev, virtio_user_create_queue) < 0)\n+\tif (virtio_user_foreach_queue(dev, virtio_user_create_queue) < 0)\n \t\tgoto error;\n \n \tfeatures = dev->features;\n@@ -205,7 +202,7 @@ virtio_user_start_device(struct virtio_user_dev *dev)\n \t\tgoto error;\n \n \t/* Step 3: kick queues */\n-\tret = virtio_user_queue_setup(dev, virtio_user_kick_queue);\n+\tret = virtio_user_foreach_queue(dev, virtio_user_kick_queue);\n \tif (ret < 0)\n \t\tgoto error;\n \n", "prefixes": [ "1/4" ] }{ "id": 138851, "url": "