Re: [PATCH] test/mbuf: fix mbuf data content check

2022-02-10 Thread David Marchand
On Thu, Feb 3, 2022 at 10:47 AM Olivier Matz wrote: > > On Thu, Feb 03, 2022 at 10:39:12AM +0100, David Marchand wrote: > > When allocating a mbuf, its data content is most of the time zero'd but > > nothing ensures this. This is especially wrong when building with > > RTE_MALLOC_DEBUG, where data

Re: [PATCH] test/mbuf: fix mbuf data content check

2022-02-03 Thread Olivier Matz
On Thu, Feb 03, 2022 at 10:39:12AM +0100, David Marchand wrote: > When allocating a mbuf, its data content is most of the time zero'd but > nothing ensures this. This is especially wrong when building with > RTE_MALLOC_DEBUG, where data is poisoned to 0x6b on free. > > This test reserves MBUF_TEST

[PATCH] test/mbuf: fix mbuf data content check

2022-02-03 Thread David Marchand
When allocating a mbuf, its data content is most of the time zero'd but nothing ensures this. This is especially wrong when building with RTE_MALLOC_DEBUG, where data is poisoned to 0x6b on free. This test reserves MBUF_TEST_DATA_LEN2 bytes in the mbuf data segment, and sets this data to 0xcc. Cal