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

Thomas Monjalon thomas at monjalon.net
Wed Nov 27 16:09:10 CET 2019


27/11/2019 15:47, David Marchand:
> On Wed, Nov 27, 2019 at 3:31 PM Thomas Monjalon <thomas at monjalon.net> 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 must be limited by the configured RTE_MAX_QUEUES_PER_PORT
> > that applications expect to be respected.
> >
> > The limitation is applied at ethdev level (function rte_eth_dev_info_get),
> > in order to force the configured limit for all drivers.
> >
> > Fixes: 14b53e27b30e ("ethdev: fix crash with multiprocess")
> > Cc: stable at dpdk.org
> >
> > Reported-by: Raslan Darawsheh <rasland at mellanox.com>
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> > Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
> 
> Reviewed-by: David Marchand <david.marchand at redhat.com>

Applied





More information about the stable mailing list