]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: fix build with -Wunused-function
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 9 Dec 2021 17:19:47 +0000 (17:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 18 Jan 2022 10:27:48 +0000 (11:27 +0100)
commitaf8d89a0c6d5cfd4d77ec1ec224e5a72996026df
tree7f695d749affb31799a46fad68f736a8348eb32e
parent3dcb88a0f1752e24de1dfb18da20543af90f1381
net/af_xdp: fix build with -Wunused-function

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: stable@dpdk.org
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c