Message ID | 20231127030435.17278-5-gakula@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2820429vqx; Sun, 26 Nov 2023 19:05:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUY92E4YWppnN0rEMkLuAKogSWNmIU2ZJ6/3xAwW6zqZYhfWuclEUg6r5EWnq1YgEM7Yt6 X-Received: by 2002:a05:6808:21a2:b0:3b8:3ed6:c468 with SMTP id be34-20020a05680821a200b003b83ed6c468mr12884564oib.58.1701054334003; Sun, 26 Nov 2023 19:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701054333; cv=none; d=google.com; s=arc-20160816; b=OPEh50z3Pre797EQcPJiJo+FhBNXm5BWSSU/4vD4qzVkfX21CDdmz2NqkGrO8e3kV3 Jsater8slm04kSjqLKre8k5550De635COLsJu80tHWV96FwgOADGQDyr0YfdzJcyPwX9 zRujYcYdWHuS1nJzoxtO+HZv29yuODa1ZJjr266+f50qfniB+c7BxpwPznRkAuseBcDE 8qamTAMCeHRVAddocEAS9D6jqbnlJjtlpHbixp+7iK/ZDdmkhlbxqn8YtqUODAbWpRAK Wd3E2rZyCOU7GdsrmmRhwImuJyfFKthBWUYCDi4WXulMaPaCY0PwGqvIzjTTqXh37zcP sihA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=s27OucWU3fOscbVAX3ldp1gFzf1mDvkwTDGgwv9Qvbc=; fh=wPv/fmS7iNNmCH0mdUKjkT6XsNx1nMbXFeqwvq2D6q0=; b=TmW5pb07dm8u7m2El4y0OpHJyHcbLe4hX39lTXudBcO9MrZ5G8fK1mbfii0cKsUWCM CSaymhw2DRsKrClODsRCkMa3KKtTzetugeKXuCOTrbQD0VNOlmZU7Ye8TnE4bP0mxt2R NNealw3UTpBEjeJj9rud+QQp5J5rKAsiOtIdozZvcxR2qS1onU0hEjEwnT8ybM8/v6vh vmEwIDm1vm7zztjiuYXtVsoizX4Q2bUvdeGZf064EnG0GfHNSmf6UVabm2PTIoXUTc7E r2qviASNSiGkVhUXZ/2i1/PNSmCObSlYZcgDLLvJf+5uA4J6NhENAenSuMBNWYOshLEI Lu5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=IB4sEvZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id by5-20020a056a02058500b005c24221b37esi9803861pgb.600.2023.11.26.19.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 19:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=IB4sEvZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B08D8806A631; Sun, 26 Nov 2023 19:05:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232340AbjK0DFR (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Sun, 26 Nov 2023 22:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231996AbjK0DFD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 26 Nov 2023 22:05:03 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80076124; Sun, 26 Nov 2023 19:05:09 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AR0QDe9014892; Sun, 26 Nov 2023 19:05:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=s27OucWU3fOscbVAX3ldp1gFzf1mDvkwTDGgwv9Qvbc=; b=IB4sEvZU74KHeBCSfus5Sh32l7dl0EI82Oc8GQTiQrtqcXI2WEC+vgBpAs5acK1PmWa1 57x7Wew0mN98XbpJBVlggM758L5Hlek0eokYECY8X1Z/frnMmh9TBPsFwbnn0fXsaf8M +HKfiSFFd+N4cRVCCkbkH3NiWh5N4zDkjja6IAaFazvW8SzL1/1+b9Lp3Zei0cIlRUf7 AvwsXsZKxBY2ObcAeTzhLkNUB9ake75G8awFp0BB1+Ptfc00N43WAoG3C80Ki/IjspS/ kA3suAsdIkKOh+eN4XzaoQHD3/xFWNAzf/RHRudk2ETF2Br4X9PbSsFCvunLChiCyjy1 gQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ukf5x3bk4-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 26 Nov 2023 19:05:03 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 26 Nov 2023 19:04:54 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sun, 26 Nov 2023 19:04:54 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id B78633F7090; Sun, 26 Nov 2023 19:04:51 -0800 (PST) From: Geetha sowjanya <gakula@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <kuba@kernel.org>, <davem@davemloft.net>, <pabeni@redhat.com>, <edumazet@google.com>, <sgoutham@marvell.com>, <gakula@marvell.com>, <sbhatta@marvell.com>, <hkelam@marvell.com> Subject: [net v2 PATCH 4/5] octeontx2-af: Add missing mcs flr handler call Date: Mon, 27 Nov 2023 08:34:34 +0530 Message-ID: <20231127030435.17278-5-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231127030435.17278-1-gakula@marvell.com> References: <20231127030435.17278-1-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: wNHzfbdQuQluqmq4T-0QZmOmOzDkV0GM X-Proofpoint-ORIG-GUID: wNHzfbdQuQluqmq4T-0QZmOmOzDkV0GM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-26_25,2023-11-22_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 26 Nov 2023 19:05:30 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783684749439106114 X-GMAIL-MSGID: 1783684749439106114 |
Series |
octeontx2-af: miscellaneous fixes
|
|
Commit Message
Geetha sowjanya
Nov. 27, 2023, 3:04 a.m. UTC
If mcs resources are attached to PF/VF. These resources need to be freed on FLR. This patch add mssing mcs flr call on PF FLR. Fixes: bd69476e86fc ("octeontx2-af: cn10k: mcs: Install a default TCAM for normal traffic") Signed-off-by: Geetha sowjanya <gakula@marvell.com> Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com> --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c index 22c395c7d040..731bb82b577c 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c @@ -2631,6 +2631,9 @@ static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc) rvu_npc_free_mcam_entries(rvu, pcifunc, -1); rvu_mac_reset(rvu, pcifunc); + if (rvu->mcs_blk_cnt) + rvu_mcs_flr_handler(rvu, pcifunc); + mutex_unlock(&rvu->flr_lock); }