From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 96C39A00BE; Wed, 16 Feb 2022 19:56:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B134410FF; Wed, 16 Feb 2022 19:56:20 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id AEBE140150 for ; Wed, 16 Feb 2022 19:56:18 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id c10so2876021pfv.8 for ; Wed, 16 Feb 2022 10:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wAocJN8hjMEzxAI1qVd/As4orPbRsebqDcb5K9XPdKE=; b=uZGB/sO7coe8lpda8W3cNzwUo6C72tPHTYpo98gvk/CU6N+uRT2O+zcoe+g++xTwdu BY8eh8lqctdTpoB7Vff6pqYaBTrP5QooH8H4NhwSbDVyeWNcXUJ2W3E0LIC+GSUeNc+h 1ns7F/oeDYQpiYwaaUKiGTnOMoE14kbR2QZp+SMbfPv60Up3BN4KjTFRb3mdTG8KxJd3 xqokDe+FR2Ceyv8cvmamLAb6SpX/eQj6H8n8lCDBsc47C3NTLq1062fxGzyaUuagepq7 cWDeFYGGFOiuLRUaI0qofEbkQscOWU3LhTIdzTP09p4FdE4crKNrpR337Ey2QHP8hC8V j1uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wAocJN8hjMEzxAI1qVd/As4orPbRsebqDcb5K9XPdKE=; b=qTRBs32y+k4IlMsBGhKrJ2EPLz1WF4cO4HFqaIrGRowOhOxNHTM5Q3XHT12mNF2pTC O049zoO+GbyOJDcNl5rv00o2uhvrClwJXBxtfbOVWr1ystYpS45XHssHG150GamgMf8t Zn8HaeDKbgKWq10b2iQqbxg46/qSEMNayOwup45Q8wbE9LxUenHAG+769JqtuKnJwANn SpaFFiETMp4XH26DMIPKC/cXtq2QMuU+lRJrlRVpydzThl8mBgPx1GLECWmeMenOKx11 tdso1oKw5YKFMIgaIldgZGcxgsiD9NKNrUndcre+oLkkBKUs45uS+Pn6Pe+4lPurxkTT D2mg== X-Gm-Message-State: AOAM533zAxRhJ22KoN9psGOsUSxrJPi5PtO9pZ/R2ncSkv/uyyzbjMfu cZDBt02coKqxJOWSoCG3cUFfuA== X-Google-Smtp-Source: ABdhPJzdQSo/hwxMFCWkb8DPvdOxYgZAVhGmEnEtJzChvBNJiSvX72aqzaa5/8cw4PYN4G5T3Nob3A== X-Received: by 2002:a05:6a00:1596:b0:4df:78a5:1546 with SMTP id u22-20020a056a00159600b004df78a51546mr4456098pfk.0.1645037777877; Wed, 16 Feb 2022 10:56:17 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id c20sm33647713pfl.46.2022.02.16.10.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 10:56:17 -0800 (PST) Date: Wed, 16 Feb 2022 10:56:15 -0800 From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org Subject: Re: [RFC 0/2] Eliminate zero length arrays in DPDK Message-ID: <20220216105607.384b4dc6@hermes.local> In-Reply-To: References: <20220215230058.64760-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 16 Feb 2022 09:33:02 +0000 Bruce Richardson wrote: > On Tue, Feb 15, 2022 at 03:00:56PM -0800, Stephen Hemminger wrote: > > Yet another case of applying Linux kernel best practices > > to DPDK. Flexible arrays are supported by Clang, GCC and > > Microsoft compilers (part of C99). > > > Do we need to start explicitly stating that DPDK uses C99 features, and > adding -std=c99 to our build flags? Are we also requiring that applications > are compiled with c99 features to use this (I would hope that they are, but > I'm not sure we can mandate it). There are already many uses of flex array in DPDK. This is nothing new.