Re: [dpdk-dev] [PATCH] net/mlx4: fix undefined behavior of RSS conversion

2018-05-22 Thread Adrien Mazarguil
On Tue, May 22, 2018 at 02:01:38PM +0100, Ferruh Yigit wrote: > On 5/22/2018 12:26 PM, Adrien Mazarguil wrote: > > As reported by ICC, an array initializer that uses values found in the > > array being initialized, although semantically correct (GCC and clang do > > not complain and generate correc

Re: [dpdk-dev] [PATCH] net/mlx4: fix undefined behavior of RSS conversion

2018-05-22 Thread Ferruh Yigit
On 5/22/2018 12:26 PM, Adrien Mazarguil wrote: > As reported by ICC, an array initializer that uses values found in the > array being initialized, although semantically correct (GCC and clang do > not complain and generate correct code), results in undefined behavior > since initialization order is

[dpdk-dev] [PATCH] net/mlx4: fix undefined behavior of RSS conversion

2018-05-22 Thread Adrien Mazarguil
As reported by ICC, an array initializer that uses values found in the array being initialized, although semantically correct (GCC and clang do not complain and generate correct code), results in undefined behavior since initialization order is itself undefined. This patch restores the static keyw