]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: make UMEM configure more readable
authorHaiyue Wang <haiyue.wang@intel.com>
Wed, 9 Feb 2022 12:43:58 +0000 (20:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 10 Feb 2022 10:23:17 +0000 (11:23 +0100)
commite1543baea37db002238a30d120a58472fb6471a7
tree40f5997c5cae569075577b94f3e78ab6c61a0abb
parent8507a16902d90fc17be59f15ed4b2903e5a3d4b8
net/af_xdp: make UMEM configure more readable

The below compile time defined style make the code not so readable, the
first function end block is after "#endif" segment.

#if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG)

xdp_umem_configure()
{

#else
xdp_umem_configure()
{

#endif
'shared code block'
}

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c