[dpdk-dev] [PATCH v2 1/6] ixgbe: put only non-zero initializer in definition

2014-09-08 Thread Olivier MATZ
Hello Bruce, On 08/28/2014 05:42 PM, Bruce Richardson wrote: > Since all unspecified fields in an initializer are assumed to be zero we > can simplify the empty mbuf definition in the vector driver to only use > the fields that are non-zero, i.e. just nb_segs = 1. This makes things > shorter and m

[dpdk-dev] [PATCH v2 1/6] ixgbe: put only non-zero initializer in definition

2014-09-05 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Thursday, August 28, 2014 4:43 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 1/6] ixgbe: put only non-zero initializer in > definition > > Since a

[dpdk-dev] [PATCH v2 1/6] ixgbe: put only non-zero initializer in definition

2014-08-28 Thread Bruce Richardson
Since all unspecified fields in an initializer are assumed to be zero we can simplify the empty mbuf definition in the vector driver to only use the fields that are non-zero, i.e. just nb_segs = 1. This makes things shorter and means that the structure doesn't need as many updates for other fields