Re: [dpdk-dev] [PATCH v2] ethdev: fix data type for port id

2020-10-29 Thread Thomas Monjalon
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(); > > +

Re: [dpdk-dev] [PATCH v2] ethdev: fix data type for port id

2020-10-29 Thread Andrew Rybchenko
>> 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

Re: [dpdk-dev] [PATCH v2] ethdev: fix data type for port id

2020-10-29 Thread wangyunjian
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

Re: [dpdk-dev] [PATCH v2] ethdev: fix data type for port id

2020-10-27 Thread Thomas Monjalon
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

[dpdk-dev] [PATCH v2] ethdev: fix data type for port id

2020-10-27 Thread 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_MAX. Fixes: 5b7ba31148a8 ("ethdev: add port o