From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested Date: Mon, 21 Mar 2016 17:45:30 +0100 Message-ID: <20160321164530.GP27079@6wind.com> References: <1458576484-28211-1-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Olivier Matz Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 845AA1C52 for ; Mon, 21 Mar 2016 17:45:44 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id r129so58439649wmr.1 for ; Mon, 21 Mar 2016 09:45:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1458576484-28211-1-git-send-email-olivier.matz@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Mar 21, 2016 at 05:08:04PM +0100, Olivier Matz wrote: > When using RSS, the number of rxqs has to be a power of two. > This is a problem because there is no API is dpdk that makes > the application aware of that. > > A good compromise is to allow the application to request a > number of rxqs that is not a power of 2, but having inactive > queues that will never receive packets. In this configuration, > a warning will be issued to users to let them know that > this is not an optimal configuration. > > Signed-off-by: Olivier Matz > --- > drivers/net/mlx4/mlx4.c | 27 +++++++++++++++++---------- > 1 file changed, 17 insertions(+), 10 deletions(-) Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND