From patchwork Thu Aug 4 09:32:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhichao Zeng X-Patchwork-Id: 114600 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 184FCA00C4; Thu, 4 Aug 2022 11:31:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD9CD4282B; Thu, 4 Aug 2022 11:31:54 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id C0B614281B; Thu, 4 Aug 2022 11:31:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659605513; x=1691141513; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cA0qJNVKOZUiomDARogU61p7k5ezeg4n0WZuBmYgpeU=; b=l1epv6dD32E6r+nKX3qR/yhiyMqC3ZTnK4qWESJjsk0+fdg81yVociVz GDior3F8b0dW+RSoYWHGOBBOE7F/+OOg5/EyH8cRGE2Xjr/dzjluRMGPe gqZ9FUjRj0dehMamGDfPGOjgR8c5edFwYDO2DFHJdx1VWqDUCvs2XzwLe XpxzqRcMRbnvbJKm14az/vfKI79Xz/i3z6df0ADaYox5gIXX5DEp18+uU D6s4BJKUtBOLIdPGeVY7pDfOB/mWHu+eKgltRIE0ZSpxNMbn+YtF7lnyv U71ihYIJRFWqRXlQZbiTv/tVdPhzPG1InpCeaty5tmbo1QNw8kDyyk65j A==; X-IronPort-AV: E=McAfee;i="6400,9594,10428"; a="353888339" X-IronPort-AV: E=Sophos;i="5.93,215,1654585200"; d="scan'208";a="353888339" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 02:31:51 -0700 X-IronPort-AV: E=Sophos;i="5.93,215,1654585200"; d="scan'208";a="662464003" Received: from unknown (HELO localhost.localdomain) ([10.239.252.103]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 02:31:49 -0700 From: zhichaox.zeng@intel.com To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Zhichao Zeng , Qi Zhang , Junyu Jiang Subject: [PATCH] net/ice: fix RSS hash update Date: Thu, 4 Aug 2022 17:32:32 +0800 Message-Id: <20220804093232.13752-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 From: Zhichao Zeng This patch fixes the issue that the RSS does not update correctly when the user sets it to none. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Cc: stable@dpdk.org Signed-off-by: Zhichao Zeng Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index b2300790ae..587b01cf23 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -4670,10 +4670,8 @@ ice_rss_hash_update(struct rte_eth_dev *dev, if (status) return status; - if (rss_conf->rss_hf == 0) { + if (rss_conf->rss_hf == 0) pf->rss_hf = 0; - return 0; - } /* RSS hash configuration */ ice_rss_hash_set(pf, rss_conf->rss_hf);