[PATCH v1] net/af_xdp: make umem configure code more readable

Ferruh Yigit ferruh.yigit at intel.com
Thu Feb 10 11:31:27 CET 2022


On 2/10/2022 8:53 AM, Loftus, Ciara wrote:
>> Subject: [PATCH v1] net/af_xdp: make umem configure code 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 at intel.com>
> 
> Thanks for the patch!
> 
> Acked-by: Ciara Loftus <ciara.loftus at intel.com>
> 

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list