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

2020-10-27 Thread Thomas Monjalon
27/10/2020 03:46, wangyunjian: > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 26/10/2020 13:33, Andrew Rybchenko: > > > On 10/26/20 3:29 PM, Thomas Monjalon wrote: > > > > 26/10/2020 13:24, wangyunjian: > > > >> From: Yunjian Wang > > > >> > > > >> The ethdev port id should be 16 bits no

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

2020-10-26 Thread wangyunjian
dpdk-dev] [PATCH] ethdev: fix data type for port id > > 26/10/2020 13:33, Andrew Rybchenko: > > On 10/26/20 3:29 PM, Thomas Monjalon wrote: > > > 26/10/2020 13:24, wangyunjian: > > >> From: Yunjian Wang > > >> > > >> The ethdev port id shou

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

2020-10-26 Thread Thomas Monjalon
26/10/2020 13:33, Andrew Rybchenko: > On 10/26/20 3:29 PM, Thomas Monjalon wrote: > > 26/10/2020 13:24, 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. > >> >

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

2020-10-26 Thread Andrew Rybchenko
On 10/26/20 3:29 PM, Thomas Monjalon wrote: > 26/10/2020 13:24, 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. >> >> Fixes: 5b7ba31148a8 ("ethdev: add port ownership

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

2020-10-26 Thread Andrew Rybchenko
On 10/26/20 3:24 PM, wangyunjian wrote: > 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. > > Fixes: 5b7ba31148a8 ("ethdev: add port ownership") > Cc: sta...@dpdk.org > > Signed-off-

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

2020-10-26 Thread Thomas Monjalon
26/10/2020 13:24, 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. > > Fixes: 5b7ba31148a8 ("ethdev: add port ownership") It was 32-bit on purpose, to avoid overflow in

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

2020-10-26 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. Fixes: 5b7ba31148a8 ("ethdev: add port ownership") Cc: sta...@dpdk.org Signed-off-by: Yunjian Wang --- lib/librte_ethdev/rte_ethdev.c | 2