Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3519537pxf; Mon, 15 Mar 2021 11:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSuU5FExUtw3QaJAGAeNdPH0d56EhT74BNBjZ5wdMSuTkyFPaKRKkqPWSB6jT/Hitq1eav X-Received: by 2002:a17:907:d0b:: with SMTP id gn11mr25150341ejc.463.1615832494807; Mon, 15 Mar 2021 11:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832494; cv=none; d=google.com; s=arc-20160816; b=jucmnNyDjxcjaBfdu5X22OesHxOFq2n3epTZDCs9KHKDGymqNuB5oUcnsJ1N/Zh+7M XINbcVz7IZXSymczkniPkRcoDqnuqQZZ2/6W96+YLYkQPNOEN48pe7DmyyyA9pCWXClq W0Z71Y86nrLhzv61B9YNM9tkyRL2Z/cfOcaVp/xsqhjyVdLyRvnpErV00XDqXyR2miPs P3g5ebI5RpNhzg/M7L0b9hJnK7Ozp5MdNwwq1YFRsw50GlYN7JjVSl0EFdib5TeXHgAg sCvxEpE0QJtpCYToWymbknW5sS86PIOuXzRcVZ3tDgkt411PpHm50Yj2DWJA62mtZ5TU FpcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ROOBYNC1a61O9aEsuUiDQTG3Scq6Q8byUnm/WXLpod0=; b=Zd4XAF0JBGe03M2U/rFjPCHf3nfeUOaSwQTQXNOZX9wl5x3ULjJseVsSN8X7Y52oeY AXSZcJ4b1aV2SdOpb/ilYE1y0h4le6jXYR4FkVkTOjUnvW/CE8EhvJcb7Q02Bud5V1Og 3gWAmlW+XXzs7PSu1HJubqE0x4rFqvx2XBEcNZydJ9/23OQikATxo5lm5akE4yJz7RXV 13H7sRI7vXchKiw/cBg3XnDiA3zCDhxlwbxVNHFavPEtGFO9HGrTw3OpkhJ6/9wTgjhg NEDiVa5BtqumNBDCyMneNseAXoX5wISZvnqoD/lgju6CUmJNCZx5L67DHKb2vggs/nHX 12sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="gwdakz/8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si6727958ejy.63.2021.03.15.11.21.12; Mon, 15 Mar 2021 11:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="gwdakz/8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237791AbhCOOUE (ORCPT + 99 others); Mon, 15 Mar 2021 10:20:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:37670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232781AbhCON74 (ORCPT ); Mon, 15 Mar 2021 09:59:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 321EF64EEF; Mon, 15 Mar 2021 13:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816776; bh=6oitWgIH5mIY2SE+wNaQ6r+GtKwh0skbfozHpeWqKuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gwdakz/8Gn7JJUy8nasTpPbAa9LtHMStKQNnecFdvqaeReUaVuUoqUvW6pSQmhhrv XNlsFSB+UVwLWsdr+uq8w3de0J9zxVuFVcuP2vsdsDpQXRmPh/xbBVqjl54v8Ebd/n YKV0YAn8TZtMwWuc88ZiXLIRBMV9pF8+6V7jO73w= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian Shen , Huazhong Tan , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 108/290] net: hns3: fix error mask definition of flow director Date: Mon, 15 Mar 2021 14:53:21 +0100 Message-Id: <20210315135545.553699274@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Jian Shen [ Upstream commit ae85ddda0f1b341b2d25f5a5e0eff1d42b6ef3df ] Currently, some bit filed definitions of flow director TCAM configuration command are incorrect. Since the wrong MSB is always 0, and these fields are assgined in order, so it still works. Fix it by redefine them. Fixes: 117328680288 ("net: hns3: Add input key and action config support for flow director") Signed-off-by: Jian Shen Signed-off-by: Huazhong Tan Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index 096e26a2e16b..36690fc5c1af 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -1031,16 +1031,16 @@ struct hclge_fd_tcam_config_3_cmd { #define HCLGE_FD_AD_DROP_B 0 #define HCLGE_FD_AD_DIRECT_QID_B 1 #define HCLGE_FD_AD_QID_S 2 -#define HCLGE_FD_AD_QID_M GENMASK(12, 2) +#define HCLGE_FD_AD_QID_M GENMASK(11, 2) #define HCLGE_FD_AD_USE_COUNTER_B 12 #define HCLGE_FD_AD_COUNTER_NUM_S 13 #define HCLGE_FD_AD_COUNTER_NUM_M GENMASK(20, 13) #define HCLGE_FD_AD_NXT_STEP_B 20 #define HCLGE_FD_AD_NXT_KEY_S 21 -#define HCLGE_FD_AD_NXT_KEY_M GENMASK(26, 21) +#define HCLGE_FD_AD_NXT_KEY_M GENMASK(25, 21) #define HCLGE_FD_AD_WR_RULE_ID_B 0 #define HCLGE_FD_AD_RULE_ID_S 1 -#define HCLGE_FD_AD_RULE_ID_M GENMASK(13, 1) +#define HCLGE_FD_AD_RULE_ID_M GENMASK(12, 1) struct hclge_fd_ad_config_cmd { u8 stage; -- 2.30.1