Re: [PATCH] net/af_xdp: fix build with -Wunused-function

2022-01-18 Thread Ferruh Yigit
On 12/9/2021 5:19 PM, Ciara Loftus wrote: The get_shared_umem function is only called when the kernel flag XDP_UMEM_UNALIGNED_CHUNK_FLAG is defined. Move the function implementation and associated helper so that it only gets compiled when that flag is set. Fixes: 74b46340e2d4 ("net/af_xdp: suppo

[PATCH] net/af_xdp: fix build with -Wunused-function

2021-12-09 Thread Ciara Loftus
The get_shared_umem function is only called when the kernel flag XDP_UMEM_UNALIGNED_CHUNK_FLAG is defined. Move the function implementation and associated helper so that it only gets compiled when that flag is set. Fixes: 74b46340e2d4 ("net/af_xdp: support shared UMEM") Cc: sta...@dpdk.org Signed