From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helin Zhang Subject: [PATCH 2/3] app/testpmd: enable RSS support for i40e Date: Fri, 18 Jul 2014 10:45:20 +0800 Message-ID: <1405651521-14545-3-git-send-email-helin.zhang@intel.com> References: <1405651521-14545-1-git-send-email-helin.zhang@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1405651521-14545-1-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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