Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3515454pxf; Mon, 15 Mar 2021 11:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVxupttJIfVXCYoD721z1xUPp5Ri0DO4tChkl1NZbvulS9ZJPiPWoSG1WpsJgRJ9SXuUBK X-Received: by 2002:a05:6402:4314:: with SMTP id m20mr30737138edc.5.1615832121795; Mon, 15 Mar 2021 11:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832121; cv=none; d=google.com; s=arc-20160816; b=QdIw484fNu+Irb6GIU1nAuMCuOJWDKzkZ1KI+mYEL/WkpF8tCOvta0wui3fnTy1VWj mUdhcdbQDXA4h46uPsHeETez6EvKyRJwGQfBnUFZ6YMCbx3mcfJuXhS7vjj6/jOPJIXr DwdOzL+CX22ZGtYu+ByDxLPiLXnAKZoI7514igmFq4QQ6nrUeaRLNeZiauMip47rYWwd aHJJCVu4G/0c7/zJ10tv9EnnhRTYSpPWutBDigIHEDeMX9qBmr9q8sH9gvM/fVpNOz/X hRf6Xj2gwSI/QVRe/F+9oZgF4wcUULapGOY27pfWNd1PWekjsDqNYPK4SvXvM0TCCJpf CHbg== 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=H/s75gyNjLujEwnRxcSSmF9sfxxOAjK/pZWf9lf42mY=; b=a6dgR6V0jTiyesfYlw/ifhARunXgJO1e7nH5+Exvgd+fG35JDtn8j1hbMqF9Qgp9s3 ERNuZoijylPYIpfsFDbHnq2nSYfkdjAxDphuAsmkLjjnr8MmsioPQWYrnWmkFfswhyWl Byy1eqfvgA+TRnZQPAb/TwoAsV1pcvy1tPE4lLITWARWzZdA4N3VL3xxBV1keyW8AV7p guzgTsOhig6eWiDdv4MizZwDAKIa6XxySybAKo2TgCvPjtfCeEBmpjrizZCUVmVH+ez3 SyUWd0dyrigVCE7TSnMoVStc+RSP7CBovsItEmoK+33i6Lg6iAImh8i2Ptuby/vM/ffQ taPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ObSWpk+E; 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 a7si13303161edb.607.2021.03.15.11.14.59; Mon, 15 Mar 2021 11:15:21 -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=ObSWpk+E; 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 S236648AbhCOOOP (ORCPT + 99 others); Mon, 15 Mar 2021 10:14:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:37632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232554AbhCON7C (ORCPT ); Mon, 15 Mar 2021 09:59:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9111564F0F; Mon, 15 Mar 2021 13:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816729; bh=SBqasC92CRDMyRGG84M2QI1/IUQmBYGLj6XZGIG3aRM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ObSWpk+EV0uxgHu9aqapqDxTUYg+qyQ01jp2tdNbKoUfCLusDeOOCyAmM36dS4S/Z Rp3PsuFGjjTr/AO7WLelCvLvc8guIeJcA4ZzDsmVqEnX1iR17GWRYvBG8sxr+krjO+ oHFgDthYe2Btw9ttH+jcr0GQSVy4/d5Hi7iNYiXM= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian Shen , Huazhong Tan , Jakub Kicinski Subject: [PATCH 5.11 089/306] net: hns3: fix error mask definition of flow director Date: Mon, 15 Mar 2021 14:52:32 +0100 Message-Id: <20210315135510.655109479@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@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 commit ae85ddda0f1b341b2d25f5a5e0eff1d42b6ef3df upstream. 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: Greg Kroah-Hartman --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -1048,16 +1048,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) #define HCLGE_FD_AD_TC_OVRD_B 16 #define HCLGE_FD_AD_TC_SIZE_S 17 #define HCLGE_FD_AD_TC_SIZE_M GENMASK(20, 17)