Re: [dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread David Marchand
On Wed, Nov 27, 2019 at 3:11 PM Thomas Monjalon wrote: > > 27/11/2019 15:07, David Marchand: > > On Wed, Nov 27, 2019 at 3:06 PM Ferruh Yigit wrote: > > > > > > On 11/27/2019 1:42 PM, Thomas Monjalon wrote: > > > > A buffer overflow happens in testpmd with some drivers > > > > since the queue arr

Re: [dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread Ferruh Yigit
On 11/27/2019 2:14 PM, Ferruh Yigit wrote: > On 11/27/2019 2:11 PM, Thomas Monjalon wrote: >> 27/11/2019 15:07, David Marchand: >>> On Wed, Nov 27, 2019 at 3:06 PM Ferruh Yigit wrote: On 11/27/2019 1:42 PM, Thomas Monjalon wrote: > A buffer overflow happens in testpmd with some drive

Re: [dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread Ferruh Yigit
On 11/27/2019 2:11 PM, Thomas Monjalon wrote: > 27/11/2019 15:07, David Marchand: >> On Wed, Nov 27, 2019 at 3:06 PM Ferruh Yigit wrote: >>> >>> On 11/27/2019 1:42 PM, Thomas Monjalon wrote: A buffer overflow happens in testpmd with some drivers since the queue arrays are limited to RTE_

Re: [dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread Thomas Monjalon
27/11/2019 15:07, David Marchand: > On Wed, Nov 27, 2019 at 3:06 PM Ferruh Yigit wrote: > > > > On 11/27/2019 1:42 PM, Thomas Monjalon wrote: > > > A buffer overflow happens in testpmd with some drivers > > > since the queue arrays are limited to RTE_MAX_QUEUES_PER_PORT. > > > > > > The advertised

Re: [dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread David Marchand
On Wed, Nov 27, 2019 at 3:06 PM Ferruh Yigit wrote: > > On 11/27/2019 1:42 PM, Thomas Monjalon wrote: > > A buffer overflow happens in testpmd with some drivers > > since the queue arrays are limited to RTE_MAX_QUEUES_PER_PORT. > > > > The advertised capabilities of mlx4, mlx5 and softnic > > for

Re: [dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread Ferruh Yigit
On 11/27/2019 1:42 PM, Thomas Monjalon wrote: > A buffer overflow happens in testpmd with some drivers > since the queue arrays are limited to RTE_MAX_QUEUES_PER_PORT. > > The advertised capabilities of mlx4, mlx5 and softnic > for the number of queues were the maximum number: UINT16_MAX. > They m

[dpdk-dev] [PATCH] ethdev: limit maximum number of queues

2019-11-27 Thread Thomas Monjalon
A buffer overflow happens in testpmd with some drivers since the queue arrays are limited to RTE_MAX_QUEUES_PER_PORT. The advertised capabilities of mlx4, mlx5 and softnic for the number of queues were the maximum number: UINT16_MAX. They must be limited by the configured RTE_MAX_QUEUES_PER_PORT t