Re: [PATCH dpdk v2] mbuf: fix strict aliasing error in allocator

2024-10-17 Thread Thomas Monjalon
25/09/2024 17:47, Stephen Hemminger: > On Wed, 25 Sep 2024 11:40:54 -0400 > Robin Jarry wrote: > > > From: Robin Jarry > > To: dev@dpdk.org > > Subject: [PATCH dpdk v2] mbuf: fix strict aliasing error in allocator > > Date: Wed, 25 Sep 2024 11:40:54 -0400 >

RE: [PATCH dpdk v2] mbuf: fix strict aliasing error in allocator

2024-10-17 Thread Ali Alnubani
> -Original Message- > From: Robin Jarry > Sent: Wednesday, September 25, 2024 6:41 PM > To: dev@dpdk.org > Subject: [PATCH dpdk v2] mbuf: fix strict aliasing error in allocator > > When building an application with -fstrict-aliasing -Wstrict-aliasing=2, > we

Re: [PATCH dpdk v2] mbuf: fix strict aliasing error in allocator

2024-09-25 Thread Stephen Hemminger
On Wed, 25 Sep 2024 11:40:54 -0400 Robin Jarry wrote: > From: Robin Jarry > To: dev@dpdk.org > Subject: [PATCH dpdk v2] mbuf: fix strict aliasing error in allocator > Date: Wed, 25 Sep 2024 11:40:54 -0400 > > When building an application with -fstrict-aliasing -Wstrict-al

[PATCH dpdk v2] mbuf: fix strict aliasing error in allocator

2024-09-25 Thread Robin Jarry
When building an application with -fstrict-aliasing -Wstrict-aliasing=2, we get errors triggered by rte_mbuf_raw_alloc() which is called inline from rte_pktmbuf_alloc(). ../dpdk/lib/mbuf/rte_mbuf.h: In function ‘rte_mbuf_raw_alloc’: ../dpdk/lib/mbuf/rte_mbuf.h:600:42: error: dereferencing type-p