[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-25 Thread Ananyev, Konstantin
> -Original Message- > From: Mrzyglod, DanielX T > Sent: Wednesday, November 25, 2015 5:07 PM > To: Ananyev, Konstantin > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict > aliasing > > If we change input buf:

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-25 Thread Mrzyglod, DanielX T
ay_alias__)) is the most clean solution which work under gcc(4.4.7), clang, icc. >-Original Message- >From: Ananyev, Konstantin >Sent: Tuesday, November 24, 2015 6:58 PM >To: Mrzyglod, DanielX T >Cc: dev at dpdk.org >Subject: RE: [dpdk-dev] [PATCH v2] net: fix build with

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Ananyev, Konstantin
quot; A character type may alias any other type." Would that work? Konstantin > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Daniel Mrzyglod > Sent: Tuesday, November 24, 2015 4:31 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] net:

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Daniel Mrzyglod
This fix is for IPv6 checksum offload error on RHEL65. Any optimalisation above -O0 provide error in IPv6 checksum flag "-fstrict-aliasing" is default for optimalisation above -O0. Fixes: 2b039d5f20a3 ("net: fix build with gcc 4.4.7 and strict aliasing") Signed-off-by: Daniel Mrzyglod --- lib/l

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Daniel Mrzyglod
This fix is for IPv6 checksum offload error on RHEL65. Any optimalisation above -O0 provide error in IPv6 checksum flag "-fstrict-aliasing" is default for optimalisation above -O0. The solution is to add typedef with __attribute__((__may_alias__) for uint16_t. Step 1 : start testpmd ./testpmd -c 0

[dpdk-dev] [PATCH v2] net: fix build with gcc 4.4.7 and strict aliasing

2015-11-24 Thread Stephen Hemminger
On Tue, 24 Nov 2015 17:31:17 +0100 Daniel Mrzyglod wrote: > This fix is for IPv6 checksum offload error on RHEL65. > Any optimalisation above -O0 provide error in IPv6 checksum > flag "-fstrict-aliasing" is default for optimalisation above -O0. > The solution is to add typedef with __attribute__(