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();
>
> +
>> Lilijun (Jerry) ; xudingke ;
>> wangyunjian ; sta...@dpdk.org
>> Subject: Re: [dpdk-dev] [PATCH v2] ethdev: fix data type for port id
>>
>> 27/10/2020 14:41, wangyunjian:
>>> From: Yunjian Wang
>>>
>>> The ethdev port id should be 16 bits no
pdk.org
> Subject: Re: [dpdk-dev] [PATCH v2] ethdev: fix data type for port id
>
> 27/10/2020 14:41, wangyunjian:
> > From: Yunjian Wang
> >
> > The ethdev port id should be 16 bits now. This patch fixes the data
> > type of the variable for 'pid
27/10/2020 14:41, wangyunjian:
> From: Yunjian Wang
>
> The ethdev port id should be 16 bits now. This patch fixes the data
> type of the variable for 'pid', changing from uint32_t to uint16_t.
>
> We also need use RTE_BUILD_BUG_ON() to ensure that RTE_MAX_ETHPORTS
> is less or equal to UINT16_M
From: Yunjian Wang
The ethdev port id should be 16 bits now. This patch fixes the data
type of the variable for 'pid', changing from uint32_t to uint16_t.
We also need use RTE_BUILD_BUG_ON() to ensure that RTE_MAX_ETHPORTS
is less or equal to UINT16_MAX.
Fixes: 5b7ba31148a8 ("ethdev: add port o
5 matches
Mail list logo