From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E6F9CB34B for ; Fri, 18 Jul 2014 04:44:37 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 17 Jul 2014 19:39:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,682,1400050800"; d="scan'208";a="575000492" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 17 Jul 2014 19:45:33 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id s6I2jUPT025165; Fri, 18 Jul 2014 10:45:30 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s6I2jRKk014668; Fri, 18 Jul 2014 10:45:29 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s6I2jRbN014664; Fri, 18 Jul 2014 10:45:27 +0800 From: Helin Zhang To: dev@dpdk.org Date: Fri, 18 Jul 2014 10:45:20 +0800 Message-Id: <1405651521-14545-3-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1405651521-14545-1-git-send-email-helin.zhang@intel.com> References: <1405651521-14545-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH 2/3] app/testpmd: enable RSS support for i40e 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: Fri, 18 Jul 2014 02:44:38 -0000 i40e can support RSS no matter if SR-IOV is enabled or not, while ixgbe/igb can not support RSS if it is SR-IOV. Code changes are needed to support i40e RSS if SR-IOV is enabled. Signed-off-by: Helin Zhang Acked-by: Jijiang Liu Acked-by: Cunming Liang --- app/test-pmd/testpmd.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index e8a4b45..2a2ec76 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1684,8 +1684,17 @@ init_port_config(void) port->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0; } - /* In SR-IOV mode, RSS mode is not available */ - if (port->dcb_flag == 0 && port->dev_info.max_vfs == 0) { + /** + * For i40e, RSS is always available. + * For non-i40e, RSS is available in non-SRIOV mode, + * according to datasheet. + */ + if (port->dcb_flag == 0 && + ((port->dev_info.max_vfs == 0) || + (!strcmp(port->dev_info.driver_name, + "rte_i40e_pmd")) || + (!strcmp(port->dev_info.driver_name, + "rte_i40evf_pmd")))) { if( port->dev_conf.rx_adv_conf.rss_conf.rss_hf != 0) port->dev_conf.rxmode.mq_mode = ETH_MQ_RX_RSS; else -- 1.8.1.4