[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-12 Thread Qiu, Michael
On 2014/12/12 1:51, r k wrote: Thomas, Michael, Wouldn't it cause unaligned memory access (new changes as well as the previous code)? Wondering if get_unaligned/put_unaligned macros similar to the ones used in kernel be ported to user-space? I think it will not, as all buf point to are struct

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-11 Thread r k
Thomas, Michael, Wouldn't it cause unaligned memory access (new changes as well as the previous code)? Wondering if get_unaligned/put_unaligned macros similar to the ones used in kernel be ported to user-space? Thanks, Ravi On Wed, Dec 10, 2014 at 4:54 PM, Thomas Monjalon wrote: > > > >

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-10 Thread Qiu, Michael
Hi Thomas, What's going on with this patch? I really do not have other better solution. Thanks, Michael On 12/8/2014 9:30 AM, Qiu, Michael wrote: > On 12/4/2014 9:35 PM, Michael Qiu wrote: >> app/test-pmd/csumonly.c: In function ?get_psd_sum?: >> build/include/rte_ip.h:161: error: dereferencing

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-08 Thread Qiu, Michael
On 12/4/2014 9:35 PM, Michael Qiu wrote: > app/test-pmd/csumonly.c: In function ?get_psd_sum?: > build/include/rte_ip.h:161: error: dereferencing pointer ?u16? > does break strict-aliasing rules > build/include/rte_ip.h:157: note: initialized from here > ... > > The root cause is

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-08 Thread Qiu, Michael
On 12/5/2014 5:26 PM, Thomas Monjalon wrote: > 2014-12-05 05:34, Qiu, Michael: >> Any comments about this version? a new workaround solution :) > Yes, one comment: I think it's ugly :) > These aliasing errors are not reliable so I think we can disable it (like > Linux does). > But in case you