Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/40721/?format=api
http://patches.dpdk.org/api/patches/40721/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180607094322.14312-8-mk@semihalf.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": "<20180607094322.14312-8-mk@semihalf.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180607094322.14312-8-mk@semihalf.com", "date": "2018-06-07T09:43:03", "name": "[dpdk-dev,v3,08/27] net/ena: restart only initialized queues instead of all", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ce9748e4df4c77ec16d6a951f51ffcd8ea5752dc", "submitter": { "id": 786, "url": "http://patches.dpdk.org/api/people/786/?format=api", "name": "Michal Krawczyk", "email": "mk@semihalf.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180607094322.14312-8-mk@semihalf.com/mbox/", "series": [ { "id": 26, "url": "http://patches.dpdk.org/api/series/26/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26", "date": "2018-06-07T09:43:00", "name": "net/ena: new features and fixes", "version": 3, "mbox": "http://patches.dpdk.org/series/26/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/40721/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/40721/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7AF751B1D7;\n\tThu, 7 Jun 2018 11:43:46 +0200 (CEST)", "from mail-lf0-f66.google.com (mail-lf0-f66.google.com\n\t[209.85.215.66]) by dpdk.org (Postfix) with ESMTP id 666AE2D13\n\tfor <dev@dpdk.org>; Thu, 7 Jun 2018 11:43:39 +0200 (CEST)", "by mail-lf0-f66.google.com with SMTP id v135-v6so13648418lfa.9\n\tfor <dev@dpdk.org>; Thu, 07 Jun 2018 02:43:39 -0700 (PDT)", "from mkPC.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.gmail.com with ESMTPSA id\n\tp28-v6sm3612368lfh.24.2018.06.07.02.43.38\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 07 Jun 2018 02:43:38 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=eXiOad6h7zR8a6/2uKwn4P4ivXff1ZoL9yjq4Vuv89g=;\n\tb=dopFZBER/SFsQu4hQtziOlMbvukH5ellwacrcVF2tOkoljs7QuNk94CnGOBf4LFwmo\n\tBzHn+RLkIFsXd4ScLURLg/pkbDk1wHwPFHuZSJdHe6BDjQgMjBrdBVTtXkyLRQ+Fdoix\n\tc280JRA7oSRcWZ95/tPN07jGi993ImHi1O2Kz7hEw9y+qdDYGeQtZCosSTeYQ7gURIin\n\tRDecO/DO8IHYJ+Ndpj1RqzcZNYZWZQS5gwSSIUnfSMG+qtugFU1fqO0iT5qq9T7jnKYi\n\tu63/p31lBoYVns7j93WUcg0ftPGvWG97hBLEhyUUfTrKpKcOoxlumLTubi/6ZsP1BsJd\n\tFRDg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=eXiOad6h7zR8a6/2uKwn4P4ivXff1ZoL9yjq4Vuv89g=;\n\tb=kzGg5V7fOI7LTEQmTxyuPa/taeo3012z5DKrCj3SsMKnrdI7CdiBmywFXpEavJlF+v\n\t2IcG5dsZIsunbyo5lcabH7o/2dpkSEXdE4uGJQwhEpDNC+JXFx0voUajilCgUGJ6pcM6\n\tjCz3nIiWVCrMhsmZAUs+fzllixM+Tpu0lDJM3rQR5owiMpb5jROqVHRWB5Cycz2ewm5a\n\tFv7eGVHEaFomzfE/Z9GlZaViSrK/6kSDSNCUs9PVHchgeGLo9y0O0gwFf/UGX3G4C0Is\n\tXJxHFM5QxKNBPv359mPzzobv0zAVfrNv57DiYKp5thbTclUlaKQOUWiMhVz072gO+oUN\n\tQXqA==", "X-Gm-Message-State": "APt69E0z/JRU1yjkroSIWX0Gp4AxnGuReEQv/YjEBSynh8q1k5FXltqe\n\t586TeEEvdhxRt/c/p8bXJc3Ucg==", "X-Google-Smtp-Source": "ADUXVKKJNzUoW//RPhRHQrfHXSII7fbYNtRifmhMlZhn7YSLCqo7KI9P2HlCpEFdafEWZvlh0ushRw==", "X-Received": "by 2002:a2e:44c6:: with SMTP id\n\tb67-v6mr961291ljf.120.1528364619067; \n\tThu, 07 Jun 2018 02:43:39 -0700 (PDT)", "From": "Michal Krawczyk <mk@semihalf.com>", "To": "Marcin Wojtas <mw@semihalf.com>, Michal Krawczyk <mk@semihalf.com>,\n\tGuy Tzalik <gtzalik@amazon.com>, Evgeny Schemeilin <evgenys@amazon.com>", "Cc": "dev@dpdk.org,\n\tmatua@amazon.com", "Date": "Thu, 7 Jun 2018 11:43:03 +0200", "Message-Id": "<20180607094322.14312-8-mk@semihalf.com>", "X-Mailer": "git-send-email 2.14.1", "In-Reply-To": "<20180607094322.14312-1-mk@semihalf.com>", "References": "<20180607094322.14312-1-mk@semihalf.com>", "Subject": "[dpdk-dev] [PATCH v3 08/27] net/ena: restart only initialized\n\tqueues instead of all", "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "There is no need to check for restart all queues. It is sufficient to\ncheck only previously initialized queues.\n\nSigned-off-by: Michal Krawczyk <mk@semihalf.com>\n---\n drivers/net/ena/ena_ethdev.c | 13 +++++++++----\n 1 file changed, 9 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex 1b8fc0f42..58cf8a971 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -749,13 +749,18 @@ static int ena_queue_restart_all(struct rte_eth_dev *dev,\n \tstruct ena_adapter *adapter =\n \t\t(struct ena_adapter *)(dev->data->dev_private);\n \tstruct ena_ring *queues = NULL;\n+\tint nb_queues;\n \tint i = 0;\n \tint rc = 0;\n \n-\tqueues = (ring_type == ENA_RING_TYPE_RX) ?\n-\t\tadapter->rx_ring : adapter->tx_ring;\n-\n-\tfor (i = 0; i < adapter->num_queues; i++) {\n+\tif (ring_type == ENA_RING_TYPE_RX) {\n+\t\tqueues = adapter->rx_ring;\n+\t\tnb_queues = dev->data->nb_rx_queues;\n+\t} else {\n+\t\tqueues = adapter->tx_ring;\n+\t\tnb_queues = dev->data->nb_tx_queues;\n+\t}\n+\tfor (i = 0; i < nb_queues; i++) {\n \t\tif (queues[i].configured) {\n \t\t\tif (ring_type == ENA_RING_TYPE_RX) {\n \t\t\t\tena_assert_msg(\n", "prefixes": [ "dpdk-dev", "v3", "08/27" ] }{ "id": 40721, "url": "