From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ADA9CA04E0; Wed, 27 Nov 2019 15:47:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 535732C60; Wed, 27 Nov 2019 15:47:57 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 2C81C2BE9 for ; Wed, 27 Nov 2019 15:47:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574866075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=++E7Fp8aIQwnO2hNHuguu9l1MxJJEWcR3zhoSbqX0Qk=; b=gdaPmKKmh54w+A1dzsSiiFKFsrbQqjGDj4gTpm0v91EuZinq5xQdXqdLHH7FSvStfZ3YXV 7/WONANHiCiALKwmoHUm5kKFZhGdHsPt5YdMDnF2a+yK+Bzv+mFqi+Q0OYbtPnbxzgIBXT +GGfPTCAuh/JdO9ofkYGYIOca58zkco= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-139-zASVABRHOfiUN1EJDog5aA-1; Wed, 27 Nov 2019 09:47:51 -0500 Received: by mail-vs1-f72.google.com with SMTP id o18so3183867vsa.0 for ; Wed, 27 Nov 2019 06:47:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IJ9mZK4ZpaSaqVwFN6JUPf1XkB5VP6xBCqiAok72aTg=; b=CMuiofFQsPHBXwPqK2PZmJ9JzEROkbkEMpXb4EYQX1rKA/Y3xAgl8R4iDG3PuDXzYd tTckLKbcV5HDupgokHddV7mb99W0+0OS6lGyaVbRAjgmGhn+nMrVRgObRoLDhSSHY5CP l7pQKRdVgxuZ6pK69ShEzhrfrY9mmOaJeCgdCRr3N8JBbYJzYprTUIC/ZgwjB1NGCYqD hSR06MQq0xC3BWatkKm2z5XEv07ScS5g6B+JOdvxN8VHic+XdVW0SA013ELMOpOQz2hB c+hF4HPwHGj6e7aGCmDsyBf2hAqwfVH5jdc1rSYlabqsx4piL67nezoDVonZTPmIG/JD j4cA== X-Gm-Message-State: APjAAAUkblr/AKvQXFPvWKUnOmSCAgeoLtxs6/XUDWjjHSdBke6hkaDH 9h0QHjrvznve9ymw9lz28vNIkUTWY8qq9MRRx639SidA+mYuwP54zKepmnXMstE2nENEq+Q4cpL ylGHVaPBsKg1QrnHq54s= X-Received: by 2002:a1f:cf43:: with SMTP id f64mr3115315vkg.18.1574866070611; Wed, 27 Nov 2019 06:47:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzC8Y2EZ9JSY7nfQUvU75T/F8LIMgEu07vflhwKXYe21sy8G1750oOUHofQ5LJegz6Hm1IfihgupKnnQ8MkB1A= X-Received: by 2002:a1f:cf43:: with SMTP id f64mr3115294vkg.18.1574866070270; Wed, 27 Nov 2019 06:47:50 -0800 (PST) MIME-Version: 1.0 References: <20191127134213.9003-1-thomas@monjalon.net> <20191127143121.10590-1-thomas@monjalon.net> In-Reply-To: <20191127143121.10590-1-thomas@monjalon.net> From: David Marchand Date: Wed, 27 Nov 2019 15:47:38 +0100 Message-ID: To: Thomas Monjalon Cc: Ferruh Yigit , Andrew Rybchenko , dev , dpdk stable , Raslan Darawsheh X-MC-Unique: zASVABRHOfiUN1EJDog5aA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2] ethdev: limit maximum number of queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Nov 27, 2019 at 3:31 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 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@dpdk.org > > Reported-by: Raslan Darawsheh > Signed-off-by: Thomas Monjalon > Reviewed-by: Ferruh Yigit Reviewed-by: David Marchand --=20 David Marchand