[dpdk-dev] [PATCH v2] ethdev: fix data type for port id
Thomas Monjalon
thomas at monjalon.net
Thu Oct 29 13:43:05 CET 2020
29/10/2020 13:18, wangyunjian:
> What about following:
>
> --- a/lib/librte_eal/freebsd/eal.c
> +++ b/lib/librte_eal/freebsd/eal.c
> @@ -672,6 +672,8 @@ rte_eal_init(int argc, char **argv)
> struct internal_config *internal_conf =
> eal_get_internal_configuration();
>
> + RTE_BUILD_BUG_ON(RTE_MAX_ETHPORTS >= UINT16_MAX);
> +
This is an ethdev value, so I would prefer having this test
inside librte_ethdev.
More information about the dev
mailing list