From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id A8CDF5691 for ; Tue, 28 Jun 2016 00:35:37 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 27 Jun 2016 15:35:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,538,1459839600"; d="scan'208";a="129513244" Received: from sie-lab-214-214.ir.intel.com (HELO silp-ixa00379011.ir.intel.com) ([10.237.214.214]) by fmsmga004.fm.intel.com with ESMTP; 27 Jun 2016 15:35:22 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: Pablo de Lara Date: Mon, 27 Jun 2016 23:35:19 +0100 Message-Id: <1467066919-135951-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [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: Mon, 27 Jun 2016 22:35:38 -0000 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