Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3513892pxf; Mon, 15 Mar 2021 11:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy3nONN9bHZqrHOcGiFppAOsoDnS6vUeUPwvHx1/iKZX7F9/FgE590QNfHP0kbexpnPO6I X-Received: by 2002:a05:6402:5203:: with SMTP id s3mr31787926edd.79.1615831994014; Mon, 15 Mar 2021 11:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615831994; cv=none; d=google.com; s=arc-20160816; b=LVKCyfeBlhk3bMlB7gR6ZlQMjdq/3ptfa1nrJKKjH+MMMbKFJg7q8lGFshslGiuudF cc1m4vBd0AzuQ82yWTwUGUIn8lC0YLjnxuiS2Suit1nNq3w4d1bCqc9gUydPWG0lcpVW uJNMkTSHht/dZD0tITX5YcPfkcmQuNzNWRipuItk0EBOLXoJ85Sdq4FGZ+ytsSUOwFh8 lbomOYEDOTpfpTVc5ncYekxRe1wo+hWcU7VEPyqcqxFMprtWgqtHn2nsKOSuV33KQqqR N7aFVDwgNgJpHftTThAF7UnVHTySyoo1Fu4GRc0g1IyhqcuL6cPDMQa9lr2kHHlhIpiS ZJIA== 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=yxa8mdrDPHaaiQ2QdUXkCcEaRtWmlh8QBX3LEo87Heg=; b=AkY85GqfuMuBBHnAmu+t4/Cv8yZo9aGE1+g+rpcXf0d9TZjsMTxdLgyr9RMaYKHP69 IDGUnfs5WJCWuFNO1ofzC7BheL4JOem0GGMAI8frQgQqjnDH3Zg4XMd/isU+x02PcULF CyOvNB67LBknISyTyBaTHKDkxg+t5vTgHbKg8ZtW8xBX6V+V7S+Ikb+VpzSoqya5CoaJ 3jH/nIigolXzYClP6qq1tEYk3PJ2mvVTkzhrsaSDvUxTZBCABE+eBexgKjbZiImsMme9 gYl8bVbxwSFSpTehTEaQ2K+xyKK797NYWrVh8L+jVYrhKsiFUANHeEKif36Qos7xzG7Y 9c7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jRTeWn1Y; 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 gr2si11689173ejb.65.2021.03.15.11.12.51; Mon, 15 Mar 2021 11:13:14 -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=jRTeWn1Y; 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 S236171AbhCOOMd (ORCPT + 99 others); Mon, 15 Mar 2021 10:12:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:36594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbhCON6g (ORCPT ); Mon, 15 Mar 2021 09:58:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DBFD964F21; Mon, 15 Mar 2021 13:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816707; bh=3Xtx1xluerSHb2MuXtSuO+2Aui405FGB83xaJuhkix4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jRTeWn1YlDquiCewCzY63OwNMn3vK648Pcm1h0Vg5WW90v+GGXFKM3ZH1zCLk0Hdj eePwIsslwD5Qv7TC7KiuP3odkqlmUYk03JIkymF1BfiHo7l0ASrXNsAw7WN0yZMLWH LtHfRUBuwCrsri2cKtRUHMMgMoKjkvalx3N3nQKU= 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.4 059/168] net: hns3: fix error mask definition of flow director Date: Mon, 15 Mar 2021 14:54:51 +0100 Message-Id: <20210315135552.299941159@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 1426eb5ddf3d..e34e0854635c 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -1018,16 +1018,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