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 D5849DE0 for ; Sat, 11 Jan 2014 03:45:04 +0100 (CET) Received: by mail-pb0-f50.google.com with SMTP id rr13so5188043pbb.23 for ; Fri, 10 Jan 2014 18:46:17 -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:subject:date:message-id; bh=VvFhrc7yzDvhY6qdS7zrOPNCTv/Z9IFAEp4HFvqOUWU=; b=jsOxgva7w19FjKxf3ENsotL04dq4XCqw/ipoSFJS90fk1LXkM6O2BBQc1roAAo5Wly kArumH98misVysrz8t9NY9Vf/cQy0S3tDru4uK0Yk/mYF/3zbfgu/nNpGUh/b+NvmYqn YxylvVjXS5cLr9ucYSe6aXWFrh/JrBPF08OifoKr6mi6KRtkCMb1HMfprhxAhg8NOhjl a6Dku5UILEYWTFMnXfbtfFGi/7AW76tIDJHJDGqQv8sVoOex8MJb4bwXIYatODn8tuCn zPOmmDfdNbW+76/FEI66K59sIhFBYnMWPl8qrTdtK6IyWVW7+cLjthjFxarJABJcqwRC CVyw== X-Gm-Message-State: ALoCoQlHcYdrmSLd+cmDxqyV3WhY2qoDtx87WfWohuAHx92zG8lOY3ruAduFtOyhKiRvyHSovATu X-Received: by 10.68.59.202 with SMTP id b10mr15713369pbr.78.1389408376825; Fri, 10 Jan 2014 18:46:16 -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 by1sm20707349pbd.25.2014.01.10.18.46.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Jan 2014 18:46:15 -0800 (PST) From: Daniel Kan To: dev@dpdk.org Date: Fri, 10 Jan 2014 18:46:07 -0800 Message-Id: <1389408367-19376-1-git-send-email-dan@nyansa.com> X-Mailer: git-send-email 1.7.9.5 Subject: [dpdk-dev] [PATCH] 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: Sat, 11 Jan 2014 02:45:05 -0000 --- 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..355db0f 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 (nb_rxq > 1 && 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