Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2379233lqp; Sun, 24 Mar 2024 16:47:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV20RHUsQSZ++tNATPEPCbnZq30wMvYck5E6xKO5XeZco6mGXYFUPuMFNU4/VIgJiTHfcVcbS+JGHa77AL8/5isqMQ08Kod4/80VmlFfQ== X-Google-Smtp-Source: AGHT+IF1L2OwVfx95y2ud9DMYDM+nnuQGY0nn3ASFuobr7baP1LiS4NuzmyOSNEakvg2A8HItT9z X-Received: by 2002:a05:6402:520a:b0:56c:d21:d919 with SMTP id s10-20020a056402520a00b0056c0d21d919mr1775591edd.34.1711324046065; Sun, 24 Mar 2024 16:47:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711324046; cv=pass; d=google.com; s=arc-20160816; b=VVa8nt0yc6kz8G+fVoffwCBJ37L4RJV+tUvZvuMCdPwMXXhqfrniR7jKbMy81MT7l1 CYLsS8EM79XwjpJWV4G5in8iSbU3jJR2I0iRwhSbM2Nz2ObmZ9WMgII44itQBDEKNEjZ dkgSsBN0Qc/zdSIa/2ZwczrfBKK847NfLl0lrkUW8MP/wTr0Szm6CYOSVlzjX0f89Rdr wS3rDqokubzZu9pg4aHFJnNieYTyz2dZ+HqBnB8ArAwWVasuGrbOE5JSWlPrC7974obu J+ctKTc4VKTxev5nJZVqkh6aD2HJXYnMIes9Nca2/8puqX+tKZeH4aHbjT/usv/CNGAZ 8EXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3LeroIHxdnLHrm1luVDEwvPniiOYhrYsN9i6f0HFMjI=; fh=J2Oj7UKsF66B8MK7bTVAQJ2iltA/sp9YgcVEkhFW43Y=; b=GViVVELbMHOjuNep3lQjSQfzkZgzOaDEsXdhCJg8zLgyP2mA4J+AjzBpaLbIv+6Pwl safQLVt1XFe4kzxN//SM0fd73IyOqzwWYcZ5T1xvBnuVzuR0PNKprPg5+nVSlVjEm0CE PnXfLahhlFJCcGQd2NltJDYQIC9qd8w8hp5J3PDa+iPeVI16iyD1zIzZL9IwWlWBm9VA RHxXbVVRqlEKgsC7lRCu5FrCCjPYiY4aQILli4v/Pvnb0YC+4uunY2kcOFkBGtaOrEHb EOhQQQnHCvcl2HGo9mHIzARd6kroZ/54GwAkhBEwLxVj+8higNPzpPOajDHNwhTfflr5 z7xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+EFKtew; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r1-20020a50d681000000b00568d7b60bf4si1943030edi.601.2024.03.24.16.47.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+EFKtew; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C34091F21BFE for ; Sun, 24 Mar 2024 23:47:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C590317F399; Sun, 24 Mar 2024 22:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E+EFKtew" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C467D1802CB; Sun, 24 Mar 2024 22:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320019; cv=none; b=mRY7q68liLE+lWcKQsodp+VISsQf4xZDCcrY3ohZDpjLrrOyGPTXuAMAOxI8D/Ahkqt8f+fOKEWxJ08GFpvK6k2ilVLqlulmnbtTWAQHW2ejjYLSV4G2MRS2z061dDJify12WfOp48J0frqFTHS8pctHW55N5zg4koxTinm70BI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320019; c=relaxed/simple; bh=Hfi/TqPi91TIeYhP6Dc4Tjeb4JsDHT3JQTAvUmwMzY4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nZdsGp08DKh6pu36kBz3pcVSz/kVdlYIjriRUedTmYlj9/KbxI1eCGtG5VvsspsAsllqchlFsL8KRH+kFE8tnCFaidhLOVUpip7K9tIg7w8v0trcvuR+cIUNNl7dHJTObUfIxpIHPMOse1ovnesBkSOzaxuTCkEg7Z9FnH+Pj8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E+EFKtew; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA87C433A6; Sun, 24 Mar 2024 22:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320019; bh=Hfi/TqPi91TIeYhP6Dc4Tjeb4JsDHT3JQTAvUmwMzY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E+EFKtew2c+jMMsS6zdlpZSW8ayP1EYmS2IW5fLesSLykYXjgUUneLCFW+rT1vYpg FmByd38kF6RzztZ7JT/Of9+T+4sDPgHZrvQXH2/gg9F1xnkCScE+zqPM3c6bdi5ZHr KHJo5eO1NoyjF26WmCz/45Ru5J0QkRHPMiQOuiK1oiChbHncKP+O6vXY94bQP/KdEl STwUMKnVsbx0lQ6mKKXG5v92bfWCw+r+KLM2Yrep+HdqBwhWBz4NS12DqN9+Rav9iV JhNKDS9cOitOOf6TzPqRsYGUbiq8s1+oHF+v/tFTEhT98zgLB5I//c8JAkSVb+KOYX aWG6JHwpVxN8g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sunil Goutham , Sai Krishna , "David S . Miller" , Sasha Levin Subject: [PATCH 6.8 327/715] octeontx2-af: Fix devlink params Date: Sun, 24 Mar 2024 18:28:26 -0400 Message-ID: <20240324223455.1342824-328-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Sunil Goutham [ Upstream commit fc1b2901e0feed933aaee273d0b0ca961539f4d7 ] Devlink param for adjusting NPC MCAM high zone area is in wrong param list and is not getting activated on CN10KA silicon. That patch fixes this issue. Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs") Signed-off-by: Sunil Goutham Signed-off-by: Sai Krishna Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- .../marvell/octeontx2/af/rvu_devlink.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c index 1e6fbd98423dc..96c04f7d93f8b 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c @@ -1235,8 +1235,8 @@ static int rvu_af_dl_dwrr_mtu_get(struct devlink *devlink, u32 id, enum rvu_af_dl_param_id { RVU_AF_DEVLINK_PARAM_ID_BASE = DEVLINK_PARAM_GENERIC_ID_MAX, RVU_AF_DEVLINK_PARAM_ID_DWRR_MTU, - RVU_AF_DEVLINK_PARAM_ID_NPC_EXACT_FEATURE_DISABLE, RVU_AF_DEVLINK_PARAM_ID_NPC_MCAM_ZONE_PERCENT, + RVU_AF_DEVLINK_PARAM_ID_NPC_EXACT_FEATURE_DISABLE, RVU_AF_DEVLINK_PARAM_ID_NIX_MAXLF, }; @@ -1434,15 +1434,6 @@ static const struct devlink_param rvu_af_dl_params[] = { BIT(DEVLINK_PARAM_CMODE_RUNTIME), rvu_af_dl_dwrr_mtu_get, rvu_af_dl_dwrr_mtu_set, rvu_af_dl_dwrr_mtu_validate), -}; - -static const struct devlink_param rvu_af_dl_param_exact_match[] = { - DEVLINK_PARAM_DRIVER(RVU_AF_DEVLINK_PARAM_ID_NPC_EXACT_FEATURE_DISABLE, - "npc_exact_feature_disable", DEVLINK_PARAM_TYPE_STRING, - BIT(DEVLINK_PARAM_CMODE_RUNTIME), - rvu_af_npc_exact_feature_get, - rvu_af_npc_exact_feature_disable, - rvu_af_npc_exact_feature_validate), DEVLINK_PARAM_DRIVER(RVU_AF_DEVLINK_PARAM_ID_NPC_MCAM_ZONE_PERCENT, "npc_mcam_high_zone_percent", DEVLINK_PARAM_TYPE_U8, BIT(DEVLINK_PARAM_CMODE_RUNTIME), @@ -1457,6 +1448,15 @@ static const struct devlink_param rvu_af_dl_param_exact_match[] = { rvu_af_dl_nix_maxlf_validate), }; +static const struct devlink_param rvu_af_dl_param_exact_match[] = { + DEVLINK_PARAM_DRIVER(RVU_AF_DEVLINK_PARAM_ID_NPC_EXACT_FEATURE_DISABLE, + "npc_exact_feature_disable", DEVLINK_PARAM_TYPE_STRING, + BIT(DEVLINK_PARAM_CMODE_RUNTIME), + rvu_af_npc_exact_feature_get, + rvu_af_npc_exact_feature_disable, + rvu_af_npc_exact_feature_validate), +}; + /* Devlink switch mode */ static int rvu_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) { -- 2.43.0