Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137570/?format=api
http://patches.dpdk.org/api/patches/137570/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1709247533-32698-2-git-send-email-roretzla@linux.microsoft.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": "<1709247533-32698-2-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1709247533-32698-2-git-send-email-roretzla@linux.microsoft.com", "date": "2024-02-29T22:58:48", "name": "[v4,1/6] hash: replace zero length array with flex array", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fee3c6f644abb1b82f8afca65dc08bee3b064fb5", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1709247533-32698-2-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31313, "url": "http://patches.dpdk.org/api/series/31313/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31313", "date": "2024-02-29T22:58:47", "name": "more replacement of zero length array", "version": 4, "mbox": "http://patches.dpdk.org/series/31313/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137570/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137570/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 D66AF43BAD;\n\tThu, 29 Feb 2024 23:59:08 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8556942F6D;\n\tThu, 29 Feb 2024 23:58:58 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id AECE942D2A\n for <dev@dpdk.org>; Thu, 29 Feb 2024 23:58:55 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id C21E220B74C2; Thu, 29 Feb 2024 14:58:54 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com C21E220B74C2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1709247534;\n bh=X5RgVHudsFfJcp37lTMGv5Ra7t9dPSiKXUOAQd69cFo=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=SFaZ5UFCXVMwGC1MMoj/NkwB1v802XPRVF/UzcYqFYPfDPoHLwp+5pF4k/boK3CZt\n ulMgAXEz6eEV2V9IirfM/rq0M4dv0jgzO+o7BtrhP7ivDyvE1+G/bWIxpWPyMT5AXl\n FwBZtvGvvvIFL0fnzdH/cwBZ37OgZnUX3VySaOFY=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Sameh Gobriel <sameh.gobriel@intel.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n Yipeng Wang <yipeng1.wang@intel.com>, mb@smartsharesystems.com,\n fengchengwen@huawei.com, Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v4 1/6] hash: replace zero length array with flex array", "Date": "Thu, 29 Feb 2024 14:58:48 -0800", "Message-Id": "<1709247533-32698-2-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1709247533-32698-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com>\n <1709247533-32698-1-git-send-email-roretzla@linux.microsoft.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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": "Zero length arrays are GNU extension. Replace with\nstandard flex array.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\nReviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nReviewed-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Chengwen Feng <fengchengwen@huawei.com>\nAcked-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/hash/rte_thash.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/hash/rte_thash.c b/lib/hash/rte_thash.c\nindex e8de071..1982051 100644\n--- a/lib/hash/rte_thash.c\n+++ b/lib/hash/rte_thash.c\n@@ -80,7 +80,7 @@ struct rte_thash_subtuple_helper {\n \tuint32_t\ttuple_offset;\t/** < Offset in bits of the subtuple */\n \tuint32_t\ttuple_len;\t/** < Length in bits of the subtuple */\n \tuint32_t\tlsb_msk;\t/** < (1 << reta_sz_log) - 1 */\n-\t__extension__ uint32_t\tcompl_table[0] __rte_cache_aligned;\n+\tuint32_t\tcompl_table[] __rte_cache_aligned;\n \t/** < Complementary table */\n };\n \n@@ -93,7 +93,7 @@ struct rte_thash_ctx {\n \tuint32_t\tflags;\n \tuint64_t\t*matrices;\n \t/**< matrices used with rte_thash_gfni implementation */\n-\tuint8_t\t\thash_key[0];\n+\tuint8_t\t\thash_key[];\n };\n \n int\n", "prefixes": [ "v4", "1/6" ] }{ "id": 137570, "url": "