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 6BE28A054F for ; Tue, 2 Mar 2021 06:45:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48A7F40142; Tue, 2 Mar 2021 06:45:50 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id DD70D40142; Tue, 2 Mar 2021 06:45:48 +0100 (CET) IronPort-SDR: u6pxG6XDKKp1vuhPEbPWyafNioYHGNcwC9QhLWzSFo1uKtZu7roW5eJjXROzSF+tRTjleqqnR/ Ti94YWGZsS8g== X-IronPort-AV: E=McAfee;i="6000,8403,9910"; a="271700295" X-IronPort-AV: E=Sophos;i="5.81,216,1610438400"; d="scan'208";a="271700295" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2021 21:45:48 -0800 IronPort-SDR: siKwOUfA8nnBe8Ev6bCgCkuCQvBKGv3WQnqTPsPrjnqai0gu5XoJ4jjOesP5lZho3H9JNDcjET E46wanGGUvVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,216,1610438400"; d="scan'208";a="599549848" Received: from wuwenjun.sh.intel.com ([10.67.110.153]) by fmsmga005.fm.intel.com with ESMTP; 01 Mar 2021 21:45:46 -0800 From: Wenjun Wu To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com Cc: Wenjun Wu , stable@dpdk.org Date: Tue, 2 Mar 2021 13:31:05 +0800 Message-Id: <20210302053105.63783-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v1] net/ice: fix wrong RSS hash update X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" This patch removes redundant judgment statements to disable RSS when RSS hash function configured is not supported. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Cc: stable@dpdk.org Signed-off-by: Wenjun Wu --- drivers/net/ice/ice_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index f43b2e0b2..a84b3d3c0 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -4461,9 +4461,6 @@ ice_rss_hash_update(struct rte_eth_dev *dev, if (status) return status; - if (rss_conf->rss_hf == 0) - return 0; - /* RSS hash configuration */ ice_rss_hash_set(pf, rss_conf->rss_hf); -- 2.25.1