Re: [PATCH] dmadev: fix structure alignment

2024-03-07 Thread fengchengwen
Acked-by: Chengwen Feng On 2024/3/8 13:37, Wenwu Ma wrote: > The structure rte_dma_dev needs cacheline alignment, but the return > value of malloc may not be aligned to the cacheline. Therefore, > extra memory is applied for realignment. > > Fixes: b36970f2e13e ("dmadev: introduce DMA device lib

[PATCH] dmadev: fix structure alignment

2024-03-07 Thread Wenwu Ma
The structure rte_dma_dev needs cacheline alignment, but the return value of malloc may not be aligned to the cacheline. Therefore, extra memory is applied for realignment. Fixes: b36970f2e13e ("dmadev: introduce DMA device library") Cc: sta...@dpdk.org Signed-off-by: Wenwu Ma --- lib/dmadev/rt