Re: rte_malloc() and alignment

2024-02-07 Thread Mattias Rönnblom
On 2024-02-07 05:46, Stephen Hemminger wrote: On Tue, 6 Feb 2024 17:17:31 +0100 Mattias Rönnblom wrote: The rte_malloc() API documentation has the following to say about the align parameter: "If 0, the return is a pointer that is suitably aligned for any kind of variable (in the same manner a

Re: rte_malloc() and alignment

2024-02-07 Thread Dmitry Kozlyuk
2024-02-06 20:46 (UTC-0800), Stephen Hemminger: > On Tue, 6 Feb 2024 17:17:31 +0100 > Mattias Rönnblom wrote: > > > The rte_malloc() API documentation has the following to say about the > > align parameter: > > > > "If 0, the return is a pointer that is suitably aligned for any kind of > > var

rte_malloc() and alignment

2024-02-06 Thread Mattias Rönnblom
The rte_malloc() API documentation has the following to say about the align parameter: "If 0, the return is a pointer that is suitably aligned for any kind of variable (in the same manner as malloc()). Otherwise, the return is a pointer that is a multiple of align. In this case, it must be a p