From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Td44o7agqHx7WbzuXR6NyoIMXITgHXeqALTLjqSBavg=; b=ifPb5xWPehoZuGmEnN89gVjKJLjn54ffrdCIbJ5l8iH+9wWNViS4m1TqkAnPc62P+O Ylxc6zPR2FbOTnNCbFX+YFXK8bsW+eY61XNg3xHCZZyGGbyPdPkv5JVOF0GJuUTqWS4p 03rAOPJfI2l9AaTa3ni6W6Lo/jKr+kU/Wy8h9ZAe3zfRHiag251+MsVgSXzC9pHIOgwS kuM4bQ8yheugbjrpJK9U7A7C9pPj+1gb9mi5n7q+eKlMIojPdIvWAxGDCl6UMDcytEMP cnPyZ9BY0DY65dfePAOs/B4qRhVwg3TEAA5kaTaxGqBvL28fqtD0rr3YbxwEdxjhOj3R wFtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Td44o7agqHx7WbzuXR6NyoIMXITgHXeqALTLjqSBavg=; b=mEnOm/z8YZQwqb/y4zsQ35hkxqVk8qQVEyhQiN5SWjKdQkiZeRp60CZ99yjrZll/eX iA4RBoandcZe3Yfya22Ef1AEThPT7td2i1fD6qbW18DSyz2EV39iXsdX1BsPygdnPN4W qcVXHEUl5adMx9nee62O9qm/mw8lSn0qccyK4qT+0eijJRjW/jKNBzdoib/MgYdQAXot rqQDwaHKRfYG8uoD3t2uRJcoyngiVOdlE+pi3hZh3yzZ6KBqcIzIw715OyHvT4Qxp+l7 A4nxaN1lCotzZQPoxBE5E+Ft+oOMU6LU6HpLuSp4TZ5LPX03+zWiM9qqsMIfggXS13ej 1w6A== X-Gm-Message-State: AD7BkJIvs4Eue4XnhprkIUO1cwUPlctv8+s0imLEmLjrDRis3m10EgGyp375f8FSHAZbi9bQ X-Received: by 10.194.201.166 with SMTP id kb6mr31781694wjc.125.1458578744359; Mon, 21 Mar 2016 09:45:44 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id e25sm13232157wmi.21.2016.03.21.09.45.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2016 09:45:43 -0700 (PDT) Date: Mon, 21 Mar 2016 17:45:30 +0100 From: Adrien Mazarguil To: Olivier Matz Cc: dev@dpdk.org Message-ID: <20160321164530.GP27079@6wind.com> Mail-Followup-To: Olivier Matz , dev@dpdk.org References: <1458576484-28211-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458576484-28211-1-git-send-email-olivier.matz@6wind.com> Subject: Re: [dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2016 16:45:44 -0000 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