Message ID | 20231205080434.27604-5-gakula@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3276715vqy; Tue, 5 Dec 2023 00:05:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpW0KPNT+ZVYNC64vYK++mtNyUAiPUmw/5MqSs1QGLEaF1tN1x5SpZW6FSRAUgVksrGTBo X-Received: by 2002:a17:902:e892:b0:1d0:b095:9ab0 with SMTP id w18-20020a170902e89200b001d0b0959ab0mr1891166plg.105.1701763545453; Tue, 05 Dec 2023 00:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701763545; cv=none; d=google.com; s=arc-20160816; b=V5BzhOy7TuLbJruD3Iak9gFIvnxO+OrIfIIRFV2eZms2oieYjsxFJz0qbGNaoANBbY ulfLoamKMGvNefu5fNeasB8UvQ+PNB8LmQjDfgBfUEqGmIBsAFWuDhPWI0okpYKOcLzT ep4SB+BO7dy9nGaW5R5ftTfyKbMrQaNe4neDS5yxsd1eu/pj3hiwWzvqbw1lr15pWAz8 i5ay8WesjJZ5URWS1ngA68+QwcB14LHCg5VuyypMV0iy3ScVdJ8OUvYV2QVbHNML9Oll QVbppADgpTp9t19XFNXPYhmxSWIxuoyHpdjmmRahxktGsBZAuiKXaleW6WIg1d3ip7qJ oz5A== 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=cpu74fKMW0DTq/GMU//ItdeUtHkkNpXJJ0gkywxMXBU=; fh=HY0X0m8t22/vAHj95xREoxWh6Roau2zCUUWQKPKPfT8=; b=nMFMhYV0cchNk6goZ46L/MW+oo4boZS7MAdwdm5RtB3GoWkHlEXv+h9FunOZ5h/BUr c2+Za2vQzv3ZAVvCxOrUz7rHshWgog1QmR/4BrJ3iG+GqnbuJqHCdqhTLMSkQzG2WVoB ClYPCnIlKCMcbfzs+pIRgJH0NAHhGTeGnzX8/6gtHplCZi+0jGwsBrS20dq/D3X+cFFs sChfu1NrDeQwhIqu8UfZ0v9sQUEVYqKlXTh0NfWn/FdhSZx1F7cssu1kYLTRkHjnT3MT WISdXK5T6Tz0zgGkI1VWHS0hZ6lEHYPjg1CrDmnIiZIYyRAhTmMg3fYqkGxNgWY2Pjgy 27kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=hgwAJeVJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x24-20020a170902b41800b001cc53dbf53dsi8903827plr.648.2023.12.05.00.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:05:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=hgwAJeVJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 8214380A9AB6; Tue, 5 Dec 2023 00:05:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235478AbjLEIFT (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Tue, 5 Dec 2023 03:05:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346380AbjLEIE7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 5 Dec 2023 03:04:59 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0DBA1B2; Tue, 5 Dec 2023 00:05:04 -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 3B56OghX010788; Tue, 5 Dec 2023 00:04:59 -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=cpu74fKMW0DTq/GMU//ItdeUtHkkNpXJJ0gkywxMXBU=; b=hgwAJeVJYYD55lDLTDXM2RnWwvoqbsLPyVZkm2ij/Ht+7cQxLVPi1YrJActKzSduCukS jFtn08jYImKA7aOJssZoGd1flIh8jDippE6uD6o9xTq14TY/w8byC77aHwXMJz5/niJi tcwQt4YrflWj7mUs29Kp4E+VCwKhzIHhacYs3E5PjjLsvleAHLf9oePofrBtNasB1/Vj uoLSMPgBg98wCTCgA/MCC2X16hT3zbBRPvnTaiaeSfh6Zynr7qJ+ZycMhIcoANt6mOG2 NfOwtEXa9GiNR6OZbRvUhX/Cs08Ld1G/xT9A0rqChkynGbLJn1YIn6zvW0sp6PWJ7AA7 Xw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ur4yrrq4w-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 05 Dec 2023 00:04:59 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 5 Dec 2023 00:04:56 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 5 Dec 2023 00:04:56 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id EFF7B3F70A6; Tue, 5 Dec 2023 00:04:52 -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>, <lcherian@marvell.com>, <jerinj@marvell.com>, <gakula@marvell.com>, <sbhatta@marvell.com>, <hkelam@marvell.com> Subject: [net v4 PATCH 4/5] octeontx2-af: Add missing mcs flr handler call Date: Tue, 5 Dec 2023 13:34:33 +0530 Message-ID: <20231205080434.27604-5-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231205080434.27604-1-gakula@marvell.com> References: <20231205080434.27604-1-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: RN41f7qEnVFQRrIZGXm0tsISjsoeHmuq X-Proofpoint-ORIG-GUID: RN41f7qEnVFQRrIZGXm0tsISjsoeHmuq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-05_03,2023-12-04_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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 00:05:29 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784428411490393202 X-GMAIL-MSGID: 1784428411490393202 |
Series |
octeontx2-af: miscellaneous fixes
|
|
Commit Message
Geetha sowjanya
Dec. 5, 2023, 8:04 a.m. UTC
If mcs resources are attached to PF/VF. These resources need to be freed on FLR. This patch add missing 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); }