From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by dpdk.org (Postfix) with ESMTP id 84FC35909 for ; Thu, 16 Jan 2014 01:30:33 +0100 (CET) Received: by mail-pb0-f50.google.com with SMTP id rq2so1876251pbb.23 for ; Wed, 15 Jan 2014 16:31:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ItBeAs/8pPR22Z2Isgf9+Wi1RW+sig1dbQvQLpTFCFs=; b=Mm2dCrn+S9s1Tr/ZRsl6Txd2900aMNLT+YFSSCcR36mmND4+ZPAFSP/qEm1lfda4za EW8Lfeahna+vF5DG19+NilTeFs51Cvc/GfozZp4hYYsBfAY+bbTf8DFfMoIoeL48nV8m s/gHPwd2fCrzHaEzuEc5/wOMQGTmyJpZWbxJZy5WoGHcYTzdShrkRchuWUtLl2AF2MjU bfPvzJBjeDpT67MqHCdIz1Jc6gjbfhbcU1Er1NWeTCn1IVU7+scsFknr2Z5hr38pKJrl Vurk6XYssNb6JulFyTkEMwmjcQs+3hOZ1imEqu4ur/E1QJbQTxlo2PLZM3LCxCc35MOI 0Niw== X-Gm-Message-State: ALoCoQnR4jbu9biH4PuEAZpSH73s/E5StkPOVJQ3D6gjLOvm8dWX9FTgVLsVKV7tMbnCWtHfIv8W X-Received: by 10.66.248.227 with SMTP id yp3mr6129113pac.116.1389832307399; Wed, 15 Jan 2014 16:31:47 -0800 (PST) Received: from localhost.localdomain (50-76-35-254-ip-static.hfc.comcastbusiness.net. [50.76.35.254]) by mx.google.com with ESMTPSA id by1sm10765466pbd.25.2014.01.15.16.31.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 16:31:46 -0800 (PST) From: Daniel Kan To: dev@dpdk.org Date: Wed, 15 Jan 2014 16:31:39 -0800 Message-Id: <1389832299-30033-1-git-send-email-dan@nyansa.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3] app/testpmd: fix RSS rx by setting mq_mode 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: Thu, 16 Jan 2014 00:30:34 -0000 The mq_mode was not set when rxq is > 0; it's defaulted to ETH_MQ_RX_NONE. As a result, RSS remains inactive. The fix is to set mq_mode to ETH_MQ_RX_RSS when hf is non-zero. This bug was introduced by commit 243db2ddee3094a2cb39fdd4b17e26df4e7735e1 igb/ixgbe: ETH_MQ_RX_NONE should disable RSS Signed-off-by: Daniel Kan --- Enable RSS even if rxq=1 based on comment from Maxime Leroy. app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b11eb2e..42e1fdb 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1546,6 +1546,9 @@ init_port_config(void) if (nb_rxq > 0) { port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL; port->dev_conf.rx_adv_conf.rss_conf.rss_hf = rss_hf; + if (rss_hf != 0) { + port->dev_conf.rxmode.mq_mode = ETH_MQ_RX_RSS; + } } else { port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL; port->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0; -- 1.7.9.5