[RFC 0/2] Eliminate zero length arrays in DPDK

Stephen Hemminger stephen at networkplumber.org
Wed Feb 16 19:56:15 CET 2022


On Wed, 16 Feb 2022 09:33:02 +0000
Bruce Richardson <bruce.richardson at intel.com> 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.


More information about the dev mailing list