From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3B46A0548; Sun, 25 Apr 2021 10:07:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A73C34115A; Sun, 25 Apr 2021 10:07:25 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 437C540685; Sun, 25 Apr 2021 10:07:24 +0200 (CEST) IronPort-SDR: Nqs9YtPcrYBqg2RglwM1sAohc/rZPd1qRqKlcPRnCMx/tkCx0589KwbSuF2EGyDoU5tAjZiHgI Zn90l02CPacA== X-IronPort-AV: E=McAfee;i="6200,9189,9964"; a="176339746" X-IronPort-AV: E=Sophos;i="5.82,250,1613462400"; d="scan'208";a="176339746" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2021 01:07:23 -0700 IronPort-SDR: lxyp3xcvAlgA20fky9JDrcam98uqZK/yAWzYD6nRvg5nPuAPo/896ZpCC1tOyk2bFd45Jq1UCR xFNbC78+lmHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,250,1613462400"; d="scan'208";a="456748998" Received: from dpdk-xuanding-dev2.sh.intel.com ([10.67.119.124]) by fmsmga002.fm.intel.com with ESMTP; 25 Apr 2021 01:07:21 -0700 From: Xuan Ding To: qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Xuan Ding , stable@dpdk.org Date: Sun, 25 Apr 2021 08:05:50 +0000 Message-Id: <20210425080550.9212-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/iavf: fix incomplete rss initiation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When the default RSS is disabled during initialization, the RSS should be turned on when creating RSS rule. This patch adds support to configure rss key and lookup table even when the default RSS is disabled. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: stable@dpdk.org Signed-off-by: Xuan Ding --- drivers/net/iavf/iavf_ethdev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 97a2dc7d76..c06873d26f 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -362,14 +362,6 @@ iavf_init_rss(struct iavf_adapter *adapter) PMD_DRV_LOG(DEBUG, "RSS is not supported"); return -ENOTSUP; } - if (adapter->eth_dev->data->dev_conf.rxmode.mq_mode != ETH_MQ_RX_RSS) { - PMD_DRV_LOG(WARNING, "RSS is enabled by PF by default"); - /* set all lut items to default queue */ - for (i = 0; i < vf->vf_res->rss_lut_size; i++) - vf->rss_lut[i] = 0; - ret = iavf_configure_rss_lut(adapter); - return ret; - } /* configure RSS key */ if (!rss_conf->rss_key) { -- 2.17.1