Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/139471/?format=api
https://patches.dpdk.org/api/patches/139471/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1713397319-26135-14-git-send-email-roretzla@linux.microsoft.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": "<1713397319-26135-14-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1713397319-26135-14-git-send-email-roretzla@linux.microsoft.com", "date": "2024-04-17T23:41:56", "name": "[13/16] net/ixgbe: remove use of VLAs for Windows built code", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "2f9ef6d7b35063aefce77d60e4be58c0662eed46", "submitter": { "id": 2077, "url": "https://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1713397319-26135-14-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31775, "url": "https://patches.dpdk.org/api/series/31775/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31775", "date": "2024-04-17T23:41:45", "name": "remove use of VLAs for Windows built code", "version": 1, "mbox": "https://patches.dpdk.org/series/31775/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/139471/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/139471/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 D6FEF43E97;\n\tThu, 18 Apr 2024 01:43:15 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4BFFC40A7A;\n\tThu, 18 Apr 2024 01:42:21 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 1EE05402DC\n for <dev@dpdk.org>; Thu, 18 Apr 2024 01:42:04 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 9FC9620FD89E; Wed, 17 Apr 2024 16:42:02 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 9FC9620FD89E", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1713397322;\n bh=DP5n0HNNobIG1YowCKQUcSqvBiQy9HlTgX3JdtLvITc=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=hL84K8sb4FpIQo0zaBsP/M3b+XgdwJcM3ckYrYT5BQGBB3al0oogoQdMpcEh/l+4k\n 7WXh+BRLgsvWBLEsLS/nbkV+CwORCjAoYvXK9cEefFxD5buzjqNU67S3PKEf6uV5/j\n OK1qhkiVIA7SYuoUFS4affObyC5M8w39lGD6G5IA=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Akhil Goyal <gakhil@marvell.com>, Aman Singh <aman.deep.singh@intel.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,\n Bruce Richardson <bruce.richardson@intel.com>,\n Chengwen Feng <fengchengwen@huawei.com>,\n Dariusz Sosnowski <dsosnowski@nvidia.com>,\n Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>,\n Fan Zhang <fanzhang.oss@gmail.com>, Ferruh Yigit <ferruh.yigit@amd.com>,\n Harry van Haaren <harry.van.haaren@intel.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Jiayu Hu <hujiayu.hu@foxmail.com>, Jingjing Wu <jingjing.wu@intel.com>,\n Kevin Laatz <kevin.laatz@intel.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n Matan Azrad <matan@nvidia.com>, Ori Kam <orika@nvidia.com>,\n Pallavi Kadam <pallavi.kadam@intel.com>,\n Reshma Pattan <reshma.pattan@intel.com>,\n Sameh Gobriel <sameh.gobriel@intel.com>, Suanming Mou <suanmingm@nvidia.com>,\n Thomas Monjalon <thomas@monjalon.net>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n Volodymyr Fialko <vfialko@marvell.com>, Yipeng Wang <yipeng1.wang@intel.com>,\n Yuying Zhang <Yuying.Zhang@intel.com>", "Subject": "[PATCH 13/16] net/ixgbe: remove use of VLAs for Windows built code", "Date": "Wed, 17 Apr 2024 16:41:56 -0700", "Message-Id": "<1713397319-26135-14-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1713397319-26135-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1713397319-26135-1-git-send-email-roretzla@linux.microsoft.com>", "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": "MSVC does not support VLAs, replace VLAs with standard C arrays\nor alloca(). alloca() is available for all toolchain/platform\ncombinations officially supported by DPDK.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 5 +++--\n drivers/net/ixgbe/ixgbe_rxtx_vec_common.h | 2 +-\n 2 files changed, 4 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex c61c52b..d460596 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -3553,7 +3553,8 @@ static int ixgbe_dev_xstats_get_names_by_id(\n \n \tuint16_t i;\n \tuint16_t size = ixgbe_xstats_calc_num();\n-\tstruct rte_eth_xstat_name xstats_names_copy[size];\n+\tstruct rte_eth_xstat_name *xstats_names_copy =\n+\t alloca(sizeof(struct rte_eth_xstat_name) * size);\n \n \tixgbe_dev_xstats_get_names_by_id(dev, NULL, xstats_names_copy,\n \t\t\tsize);\n@@ -3736,7 +3737,7 @@ static int ixgbevf_dev_xstats_get_names(__rte_unused struct rte_eth_dev *dev,\n \n \tuint16_t i;\n \tuint16_t size = ixgbe_xstats_calc_num();\n-\tuint64_t values_copy[size];\n+\tuint64_t *values_copy = alloca(sizeof(uint64_t) * size);\n \n \tixgbe_dev_xstats_get_by_id(dev, NULL, values_copy, size);\n \ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_common.h b/drivers/net/ixgbe/ixgbe_rxtx_vec_common.h\nindex a4d9ec9..78b63b9 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx_vec_common.h\n+++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_common.h\n@@ -14,7 +14,7 @@\n reassemble_packets(struct ixgbe_rx_queue *rxq, struct rte_mbuf **rx_bufs,\n \t\t uint16_t nb_bufs, uint8_t *split_flags)\n {\n-\tstruct rte_mbuf *pkts[nb_bufs]; /*finished pkts*/\n+\tstruct rte_mbuf **pkts = alloca(sizeof(struct rte_mbuf *) * nb_bufs); /*finished pkts*/\n \tstruct rte_mbuf *start = rxq->pkt_first_seg;\n \tstruct rte_mbuf *end = rxq->pkt_last_seg;\n \tunsigned int pkt_idx, buf_idx;\n", "prefixes": [ "13/16" ] }{ "id": 139471, "url": "