Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/40731/?format=api
https://patches.dpdk.org/api/patches/40731/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180607094322.14312-18-mk@semihalf.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": "<20180607094322.14312-18-mk@semihalf.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180607094322.14312-18-mk@semihalf.com", "date": "2018-06-07T09:43:13", "name": "[dpdk-dev,v3,18/27] net/ena: rework configuration of IO queue numbers", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a45b880eb63064e36e20e84ec577770c0c64bae0", "submitter": { "id": 786, "url": "https://patches.dpdk.org/api/people/786/?format=api", "name": "Michal Krawczyk", "email": "mk@semihalf.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180607094322.14312-18-mk@semihalf.com/mbox/", "series": [ { "id": 26, "url": "https://patches.dpdk.org/api/series/26/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26", "date": "2018-06-07T09:43:00", "name": "net/ena: new features and fixes", "version": 3, "mbox": "https://patches.dpdk.org/series/26/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/40731/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/40731/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 BA03D1B3F7;\n\tThu, 7 Jun 2018 11:44:03 +0200 (CEST)", "from mail-lf0-f68.google.com (mail-lf0-f68.google.com\n\t[209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 084951B3E0\n\tfor <dev@dpdk.org>; Thu, 7 Jun 2018 11:44:01 +0200 (CEST)", "by mail-lf0-f68.google.com with SMTP id g21-v6so11670096lfb.4\n\tfor <dev@dpdk.org>; Thu, 07 Jun 2018 02:44:01 -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.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 07 Jun 2018 02:43:59 -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=hRYhkDqnGV9EvmbmqtYMwX6hQQUnLmXw9D1CfMZa4iI=;\n\tb=lOdLwemPFDcuklZbIykJROgFb4KZx3D8yVIuvY85ocDm1QSGdC15vLczICqiOR7BqS\n\tTQQ6rHK1v7OMc5nyBtpYaGXD3HZPOkYO43EtNRi+JRmGwifBrdcrLdNpleXv3y9blVIQ\n\tu3GukJJ8AliKC8hcaZb6LPvPBgWmGkV+Wo0BWCDDASTlgvHvT1FgXdpMMoLQI5lqhbyg\n\tnjvHRro9QADddQotuOEVuavw72KrgsV1X3Ky680rtSrBLJhvtKneroUcHmk4GV2xclZs\n\tmtJTm4dlZGbTWUopOE2j/CGPxwz34gvUI7+tmnhHOWhOCzj6NNaa6chaR9J+l1J8Ikzm\n\thz5A==", "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=hRYhkDqnGV9EvmbmqtYMwX6hQQUnLmXw9D1CfMZa4iI=;\n\tb=RdUcp5+PxeMU6agsFndZ3xlShaE19Pm7d4QD16xqR8n891CAdn4KkBgfFlGP8C0UPx\n\trBa3qPcf+8i4kOGQaDiVFjdXimKNIPUw2m0tkwUm7r1yej3SE2wd58t3kM4K71EaSOm+\n\tZHoZabZ/ZO345jR7uwQdF25oix3fWaMAimFP8l1EIps5BdsXOwkNdqE8CZ0UwE3PSxph\n\tyBIN8wFRZz7czRvMEXX/4SfU9Du30EsZy4SLLGYLaOAK6PJzau2LeWG3bto7BmLORfIn\n\t1hz+Z+kOZPFrE+JAPxkeNsj5/1vOUyqeYh80HY90kpeYbj1/RxevqRFl0DGil94JdWWi\n\t+Siw==", "X-Gm-Message-State": "APt69E3Z/KNU2O4K+gXYsZzUFQCNHhijQJEGoG1Vf8JpA6ZHcEqyPecV\n\t+c/K+QQ9UZpvfQLDyxo/Qk27vw==", "X-Google-Smtp-Source": "ADUXVKLtNY1BoCMp9xjglncnH7e2Bfr3TP/ZA/1MMv+N+IM8CVI2FZbJomMliBuLtsg3sMNsQQDR4g==", "X-Received": "by 2002:a2e:878f:: with SMTP id\n\tn15-v6mr949746lji.69.1528364641437; \n\tThu, 07 Jun 2018 02:44:01 -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,\n\tRafal Kozik <rk@semihalf.com>", "Date": "Thu, 7 Jun 2018 11:43:13 +0200", "Message-Id": "<20180607094322.14312-18-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 18/27] net/ena: rework configuration of IO\n\tqueue numbers", "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": "From: Rafal Kozik <rk@semihalf.com>\n\nMove configuration of IO queue numbers to separate function and take\ninto consideration max number of IO completion queues.\n\nSigned-off-by: Rafal Kozik <rk@semihalf.com>\nAcked-by: Michal Krawczyk <mk@semihalf.com>\n---\n drivers/net/ena/ena_ethdev.c | 21 ++++++++++++++++++++-\n 1 file changed, 20 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex 5f4956078..1f7463496 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -1491,6 +1491,24 @@ static void ena_timer_wd_callback(__rte_unused struct rte_timer *timer,\n \t}\n }\n \n+static int ena_calc_io_queue_num(__rte_unused struct ena_com_dev *ena_dev,\n+\t\t\t\t struct ena_com_dev_get_features_ctx *get_feat_ctx)\n+{\n+\tint io_sq_num, io_cq_num, io_queue_num;\n+\n+\tio_sq_num = get_feat_ctx->max_queues.max_sq_num;\n+\tio_cq_num = get_feat_ctx->max_queues.max_cq_num;\n+\n+\tio_queue_num = RTE_MIN(io_sq_num, io_cq_num);\n+\n+\tif (unlikely(io_queue_num == 0)) {\n+\t\tRTE_LOG(ERR, PMD, \"Number of IO queues should not be 0\\n\");\n+\t\treturn -EFAULT;\n+\t}\n+\n+\treturn io_queue_num;\n+}\n+\n static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)\n {\n \tstruct rte_pci_device *pci_dev;\n@@ -1555,7 +1573,8 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)\n \tadapter->wd_state = wd_state;\n \n \tena_dev->tx_mem_queue_type = ENA_ADMIN_PLACEMENT_POLICY_HOST;\n-\tadapter->num_queues = get_feat_ctx.max_queues.max_sq_num;\n+\tadapter->num_queues = ena_calc_io_queue_num(ena_dev,\n+\t\t\t\t\t\t &get_feat_ctx);\n \n \tqueue_size = ena_calc_queue_size(ena_dev, &tx_sgl_size, &get_feat_ctx);\n \tif ((queue_size <= 0) || (adapter->num_queues <= 0))\n", "prefixes": [ "dpdk-dev", "v3", "18/27" ] }{ "id": 40731, "url": "