From patchwork Wed Aug 3 02:19:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xu, Ting" X-Patchwork-Id: 114559 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 2DA21A00C5; Wed, 3 Aug 2022 04:23:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B745840A84; Wed, 3 Aug 2022 04:23:25 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B6F4840141; Wed, 3 Aug 2022 04:23:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659493404; x=1691029404; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mg+r6S5NsIGa88aJg4M5VfgDIpMwGeL71n7uWj762hA=; b=Zn2UE6WY/cs50SBR7ZIJmuIKVnYgX60XNpVWHBSCwZNKcvulGrjM7XqJ h6r8a1koNiP6XZ7Fe0ejmO9EfBfbkLNB71uBjw+G50WW1yfxUC0lI6oqy mCURl3KAMu2iAWjf+56V5MKJrTpHu5YLgMZ5jYyohlIFPzja+XVZTQB6d fBpge2DdbnVUAUoXcxSDF/J6+5+C7aCmo52ygv1wEzTr1QMikp8sxmfp8 OmV6J9CoKRBG4FUlMF/XVdOLgcN+H63iUL8k8YAikbJbA38tmHr8GvlHZ uumOMEArXPoAHkqOqWFrsgHpXz816j5Eoc6spYd9UoTutLLmhR+7l0Uwa w==; X-IronPort-AV: E=McAfee;i="6400,9594,10427"; a="290338088" X-IronPort-AV: E=Sophos;i="5.93,212,1654585200"; d="scan'208";a="290338088" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2022 19:23:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,212,1654585200"; d="scan'208";a="630960053" Received: from dpdk-xuting-main.sh.intel.com ([10.67.116.187]) by orsmga008.jf.intel.com with ESMTP; 02 Aug 2022 19:23:21 -0700 From: Ting Xu To: dev@dpdk.org Cc: qi.z.zhang@intel.com, qiming.yang@intel.com, Ting Xu , stable@dpdk.org Subject: [PATCH v1] net/ice/base: fix symm RSS hash not valid for inner IPv4/6 Date: Wed, 3 Aug 2022 02:19:43 +0000 Message-Id: <20220803021943.381188-1-ting.xu@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 Inner IPv4 and IPv6 symmetric RSS hash is not valid for raw pattern. This patch fixes the issue by adding the corresponding protocol ID for inner IPv4/6. Fixes: 0837da2e27ae ("net/ice/base: support add HW profile for RSS raw flow") Cc: stable@dpdk.org Signed-off-by: Ting Xu Acked-by: Qi Zhang --- drivers/net/ice/base/ice_flow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c index bcbb9b12c4..0db474bd62 100644 --- a/drivers/net/ice/base/ice_flow.c +++ b/drivers/net/ice/base/ice_flow.c @@ -4092,6 +4092,8 @@ ice_rss_cfg_raw_symm(struct ice_hw *hw, switch (proto_id) { case ICE_PROT_IPV4_OF_OR_S: + case ICE_PROT_IPV4_IL: + case ICE_PROT_IPV4_IL_IL: len = ICE_FLOW_FLD_SZ_IPV4_ADDR / ICE_FLOW_FV_EXTRACT_SZ; if (prof->fv[i].offset == @@ -4107,6 +4109,8 @@ ice_rss_cfg_raw_symm(struct ice_hw *hw, i++; continue; case ICE_PROT_IPV6_OF_OR_S: + case ICE_PROT_IPV6_IL: + case ICE_PROT_IPV6_IL_IL: len = ICE_FLOW_FLD_SZ_IPV6_ADDR / ICE_FLOW_FV_EXTRACT_SZ; if (prof->fv[i].offset ==