Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp129952rdh; Wed, 22 Nov 2023 22:01:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwbN1eOA5Rqh7W/FKDiifk37zLaxsSEnEkJDWLOom+38KEkqtlFhv544uUJ0/IERGnxwxb X-Received: by 2002:a05:6e02:1053:b0:35b:b31:6a4b with SMTP id p19-20020a056e02105300b0035b0b316a4bmr3579724ilj.30.1700719286032; Wed, 22 Nov 2023 22:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700719285; cv=none; d=google.com; s=arc-20160816; b=mIIsBShwb/TmCRXmQ09th6NB0bK9xSxCZ5DuLbuf8nWtQuyqWED9at8bvDwZIEGupz uK/+ksHWa2RSZeFcCvQ7Ft78Zsmi/w179dm33Q4milJG70Jq6gV4vDBhJH9q2eVBrB/L x+dcKnLKQbNHM4B1yJ8T/B1V6nRl7+H7G0yGb1YMyx4kW6TPLYngOVst+bVjFLa9HtYF bDyF5clTHKgMfZ4aeopzx75ItqlU7Vn+/H0YjcSdQ6zYjbtdRHHNQvEUNB8EqIH5PQUS e4ffxl+8bU0hEJ618AIJhmU2fHpVO3re8NCjwEijW0P0KTN8pYKp8/rjW4n54t+pNvCg ZXEw== 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=20w8+xsUpn+mENMXqGWsHU036g/l6onOP9fm5MMMsxc=; fh=wPv/fmS7iNNmCH0mdUKjkT6XsNx1nMbXFeqwvq2D6q0=; b=PImS2kVcr9S+DXPVUDkADQ7ry9f8qtxQk6MpdSuSqVr1r5lY/e67pxqjmopbA4ay4A M0x6UK9GI95ZLTkVNbfLZs+FV00+vd5OgpcrLJfFjSVHKLyUIKJP+vokII3/Zrxj4VMm x87FcyAM2wulQlWQHlhzNqoy8TUHr3hRn70LHikhN08Cpowe3EOIG8p7XqIN/rhDwzpk YOUH6xkuAFYlACXjJnY7G2nNkLHwCJF8B+o+A6VuovnoQgq2iPtDbpEqheOSdk5P3nFe BYg2CObdQe8KuGGIWoJ9TqYqfo2CNAl7k9X2QC5o/v39esPpqF2dTeCocBDNmtkKsqJ1 bSVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=jOd5+j1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id q6-20020a63e946000000b005bdf5961646si631135pgj.268.2023.11.22.22.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 22:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=jOd5+j1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id AC20C807CB71; Wed, 22 Nov 2023 22:01:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344763AbjKWGAx (ORCPT + 99 others); Thu, 23 Nov 2023 01:00:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344704AbjKWGAo (ORCPT ); Thu, 23 Nov 2023 01:00:44 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E726B1BF; Wed, 22 Nov 2023 22:00:50 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AN5YoMd023177; Wed, 22 Nov 2023 22:00:45 -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=20w8+xsUpn+mENMXqGWsHU036g/l6onOP9fm5MMMsxc=; b=jOd5+j1F1j/iWDGRqewtRRMsKlt0IwirH/URmeIkPitRNynsvp689HADhyyvWn+1Mmfs NrbvjW03mdRO2G3O8nphKdIXnNCMZlyAngx6jmFiL4xOAeRZbnhPPIACISF1/GI9GfhA EaK0NYo/DyMioNw1Z9JCff0xQUSSrhVwRZAzXtaRw62B32my/XKo+6qcJnVKrLrvSJiu x2j0ouXUBffnYSgehjKYOjkUI6Zg7tZbKBr1xkyt+6mKN1ffW9hsiWGvmyFZfrLJlCaX 8/rqgKE+EfFiuPtAbE1kVAPNRsGdK4k2D93KxnT7SsV1viwJCHQh+usuP8f92KyopnjB 7Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uhpxn1xkc-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 22:00:44 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 22 Nov 2023 22:00:00 -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; Wed, 22 Nov 2023 22:00:00 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id A98293F7067; Wed, 22 Nov 2023 21:59:57 -0800 (PST) From: Geetha sowjanya To: , CC: , , , , , , , Subject: [net PATCH 4/5] octeontx2-af: Add missing mcs flr handler call Date: Thu, 23 Nov 2023 11:29:40 +0530 Message-ID: <20231123055941.19430-5-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231123055941.19430-1-gakula@marvell.com> References: <20231123055941.19430-1-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: 435nKjoVN6bfwZ7YZmT-KZhy7wd10U7V X-Proofpoint-GUID: 435nKjoVN6bfwZ7YZmT-KZhy7wd10U7V 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-23_03,2023-11-22_01,2023-05-22_02 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 22 Nov 2023 22:01:23 -0800 (PST) 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 --- 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); } -- 2.25.1