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

2020-11-04 Thread Ferruh Yigit
On 11/4/2020 3:26 AM, Ajit Khaparde wrote: On Tue, Nov 3, 2020 at 6:58 PM wangyunjian wrote: From: Yunjian Wang The ethdev port id is 16 bits now. This patch fixes the data type of the variable for 'pid', which changing from uint32_t to uint16_t. RTE_MAX_ETHPORTS is the maximum number of po

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

2020-11-03 Thread Ajit Khaparde
On Tue, Nov 3, 2020 at 6:58 PM wangyunjian wrote: > > From: Yunjian Wang > > The ethdev port id is 16 bits now. This patch fixes the data type > of the variable for 'pid', which changing from uint32_t to uint16_t. > > RTE_MAX_ETHPORTS is the maximum number of ports, which customized by > the user

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

2020-11-03 Thread wangyunjian
From: Yunjian Wang The ethdev port id is 16 bits now. This patch fixes the data type of the variable for 'pid', which changing from uint32_t to uint16_t. RTE_MAX_ETHPORTS is the maximum number of ports, which customized by the user. To avoid 16-bit unsigned integer overflow, the valid value of R