From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id CE0112C5A for ; Tue, 28 Jun 2016 10:41:36 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id a66so16464726wme.0 for ; Tue, 28 Jun 2016 01:41:36 -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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=OhzRD94nNp1qc4ak/gI5rMrUZ0Obizq/y/BHrWIhJiY=; b=BtXYeNS4lQVQRsFex0ohc3gTvZ1Vh3Hv6jLbrHYcUpyDX+TeHuRsk8VLnYVVnN4HJ7 jhoyAmO530voxUV56ch5q29etCT6AkOVyTcprxgm3n2t5ZCQORnNv4u8zriS4ccPl0bg 4bLrlSXe9rkL9dv5Gi1Ox47vRz9rrFcFRHouVG4yytmxYQb8Vh0bsQmvOne7SHkS750i OyH+to6+kEnUEPmns2C2AUSHxs+ZPogzk5XSAAy96qEJcn2u43pKeckVdxxn/qo/SYAC hTn5r37Al3i0KLUiIksaIppCupfnXpuYhzJYGYGhZItwPgbSvaoJW31ce5ZdFQF+/QRw /C5g== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=OhzRD94nNp1qc4ak/gI5rMrUZ0Obizq/y/BHrWIhJiY=; b=aCsxeCtwLlBdKitVR/+eYQXSDdPE+bOnoUHmxg5RWirJUvlL3OIyvXCM6YutyB04N0 40vV3K4emTRf6RLaEk2RjhFvJO8YHRQAVwOvZIeKrDn5pK2v9t2ZE43UAFAVowJSmL07 S1KcHvf+gpYXJdlvSzExNJz003y7yaYakBeRgR+nNIyjLnILF+RHp7pPLN4I6Mq7Vok5 72Hc0bbsRSiH5P1CmA5tPpCx7xByA2aB07fK9jz3L2LYSlC2loT2CA5uk93wjSK4QWBe d2VJfXTFq2RpCEWlkfC4jaGUp8T4xEXKt8XkBQ5Y4klI/kUnBJ9B22+d+t8qHOOUHD83 ToVQ== X-Gm-Message-State: ALyK8tLXrhtwySWQnCIGsfpYsBcf5cF5TWG9nXwe3dT6Y3olebb+7uyFjw7D4OnZJN1WdRpQ X-Received: by 10.194.162.168 with SMTP id yb8mr2018780wjb.32.1467103296670; Tue, 28 Jun 2016 01:41:36 -0700 (PDT) Received: from autoinstall.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id kc8sm4826160wjb.0.2016.06.28.01.41.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 01:41:36 -0700 (PDT) Date: Tue, 28 Jun 2016 10:41:34 +0200 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro To: Pablo de Lara Cc: dev@dpdk.org Message-ID: <20160628084134.GU14221@autoinstall.dev.6wind.com> References: <1467066919-135951-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1467066919-135951-1-git-send-email-pablo.de.lara.guarch@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] app/testpmd: limit number of forwarding cores 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: Tue, 28 Jun 2016 08:41:37 -0000 On Mon, Jun 27, 2016 at 11:35:19PM +0100, Pablo de Lara wrote: > Number of forwarding cores must be equal or less than > number of forwarding streams, otherwise two cores > would try to use a same queue on a port, which is not allowed. > > Fixes: f2bb7ae1d204 ("app/testpmd: handle all Rx queues in RSS setup") > > Signed-off-by: Pablo de Lara > --- > app/test-pmd/config.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index 9ccabf9..de60284 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -1236,6 +1236,10 @@ rss_fwd_config_setup(void) > cur_fwd_config.nb_fwd_streams = > (streamid_t) (nb_q * cur_fwd_config.nb_fwd_ports); > > + if (cur_fwd_config.nb_fwd_streams < cur_fwd_config.nb_fwd_lcores) > + cur_fwd_config.nb_fwd_lcores = > + (lcoreid_t)cur_fwd_config.nb_fwd_streams; > + > /* reinitialize forwarding streams */ > init_fwd_streams(); > > -- > 2.5.5 Tested with: - coremask allowing to use 12 cores for 4 txqs and 4 rxqs. - coremask allowing to use 12 cores for 6 txqs and 6 rxqs. - coremask allowing to use 12 cores for 8 txqs and 8 rxqs. It fixes the issue. Tested-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND