[PATCH v4] net/bonding: another fix to LACP mempool size

Stephen Hemminger stephen at networkplumber.org
Wed Mar 9 02:26:36 CET 2022


On Tue,  8 Mar 2022 22:24:02 +0800
Gaoxiang Liu <gaoxiangliu0 at 163.com> wrote:

> +	cache_size = RTE_MEMPOOL_CACHE_MAX_SIZE >= 32 ?
> +		32 : RTE_MEMPOOL_CACHE_MAX_SIZE;

No need to open code a min().

	cache_size = RTE_MIN(RTE_MEMPOOL_CACHE_SIZE, 32);



More information about the dev mailing list