Re: [PATCH net-next v3 1/4] mm: page_frag: Introduce page_frag_alloc_align()

2021-02-04 Thread Alexander Duyck
On Thu, Feb 4, 2021 at 3:06 AM Kevin Hao wrote: > > In the current implementation of page_frag_alloc(), it doesn't have > any align guarantee for the returned buffer address. But for some > hardwares they do require the DMA buffer to be aligned correctly, > so we would have to use some workarounds

[PATCH net-next v3 1/4] mm: page_frag: Introduce page_frag_alloc_align()

2021-02-04 Thread Kevin Hao
In the current implementation of page_frag_alloc(), it doesn't have any align guarantee for the returned buffer address. But for some hardwares they do require the DMA buffer to be aligned correctly, so we would have to use some workarounds like below if the buffers allocated by the page_frag_alloc