Message ID | 20240124055014.32694-1-gakula@marvell.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-36483-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp795081dyi; Tue, 23 Jan 2024 21:50:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFk+FWXLlIAQMnZf2sbX57w0oZKoVrUAltUkZI5FMSjKWhE/BC4hx5A00u3RdVwPdy4CQNk X-Received: by 2002:a05:620a:2489:b0:783:4037:1923 with SMTP id i9-20020a05620a248900b0078340371923mr10698619qkn.64.1706075455100; Tue, 23 Jan 2024 21:50:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706075455; cv=pass; d=google.com; s=arc-20160816; b=z2fEHVd1KGz7vtDeJu5/zxZswBiNxX+/w3Of0Fbe76s8IT/mZRKU7UtdH/TIK78cyq TDvA/lfe8n6BiTCU81om+pyRmGftRuCzo7PWoR9MA4hdqvAbRIqp2BgHGGrIvPfleo6C bv0UkOibf+wLUoLte8C8V+XLAyzoKo6tO3quAjSwYHdlKGpv1MvZMqXdxO5XgQkEAMVy WgoNMvq9/z7jl+C6EvQflrheK5dSyC9Ael4zkdrEl9eXvcO5SEcQXx0RLbYxcxhaz8F9 zRRQyPeF3jnapUn3FsiTUsPJV/rwMXMRk/N/HiXE0/TSdHtJzB+LjmjoScB2v0KothFp TCZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=46Rvm9FQCWP55TJBdnEFLrOvq3gVeIGa+Kc7aG9KLkg=; fh=wPv/fmS7iNNmCH0mdUKjkT6XsNx1nMbXFeqwvq2D6q0=; b=VRxA0haU1XZdD56uWBez/EsrEMqlaJU0zW00sO2gwwJn3K6pxAwb2L92mSpyKgNAcd 7FQNxiwVtmWhc30Pl7rqaBK3D0Uer5P7M7uAQ5CLIa6XbQi1Z78ovZ8jAG9ouBVBGefh PRifBUC9bZ+BxLsI/Micu28XUW/OZO5MZ6e5WmizwV3Pc1uyYRy0QhtWqe75IJro697L KXK8IUiUFAsMVR92g1yUQEd3PoLpQR1wjekoi8f1DsNtTXa7rxgiSFEbfPSQXTbiM32V lp/+kscfjO+zmAJs/MrYSNiMm8Kt2qg1G4OabwFWWVA5HPP868EMf2h0nfCuFa0qfdXW fRCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=fY6AlO3G; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-36483-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36483-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h5-20020a05620a284500b0078381a8e903si10295932qkp.270.2024.01.23.21.50.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 21:50:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36483-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=fY6AlO3G; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-36483-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36483-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B43B91C21AC5 for <ouuuleilei@gmail.com>; Wed, 24 Jan 2024 05:50:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5057DDDAF; Wed, 24 Jan 2024 05:50:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="fY6AlO3G" Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (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 C61C4E579; Wed, 24 Jan 2024 05:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.156.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706075431; cv=none; b=tUcKwS7ri3uIrV8Z+i4h3HE0m1bSt1wuqyqAT0QodG/hkQZijA8/NHOmpy5tBqIc5r01ni+rqZY+2xrFTYmcqddbjdg62+vL9ADvYUr/ZnzJ3iRmGMGjI5Rq732ZFYQL+iaZJ/9+spXAMHbVcjNPaibKda5999fzGif3C0vsGLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706075431; c=relaxed/simple; bh=BF05yO91Iry4JBzSEX4Thf2a4ewvATjtdXiUzdV66mI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OQqPu2/s5H5WyMfLdeOpPyifEE4G5Ynk9V9teSF+glLCxCFBNdyFDRPpcZL71HExPJr2GmBLrE4slsS3cpyIsTUCEoBE9Knm0LfVh1HCRXrDV/wu1nHpxWAHIMvKn4E7ewD2BH/rzWXxhbMSzLm3yaJSa1/4mvKP261fmc6t/Ms= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=fY6AlO3G; arc=none smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40NKRcNo008082; Tue, 23 Jan 2024 21:50:20 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version:content-type; s= pfpt0220; bh=46Rvm9FQCWP55TJBdnEFLrOvq3gVeIGa+Kc7aG9KLkg=; b=fY6 AlO3GmP+GecHAGHtyUhje9rJwexDCXb6gBom86CyAYGpIPuZdrpxbqgXjwWfh43V NDGmNhd4J3mQNXHAvs8fPgGbmUzgw+nncOI29x2wfaPO66lJM7MEWLnq8H7VUR7D JX0vGHj6HXfVd9SEw59/l1BOyi8bRut2Iz61FxXU6nunAU4X3v9cUvRPgtP65wYS o94daUyf7+Nkm61iABWTbmQzSmS5i3e2GdK0o7VkCqNW0AbJUe1CKcTXaH6dac4l 4cjm9dGDIC+kD/K56htiK9EVYKO7+py/YZo8e0txiA7eyurGVXBKkgVEqOvXwnou gv/omkzrH7u1NdHKs4g== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3vtmgvhfhy-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 23 Jan 2024 21:50:20 -0800 (PST) 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; Tue, 23 Jan 2024 21:50:18 -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; Tue, 23 Jan 2024 21:50:18 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 9B8F83F7051; Tue, 23 Jan 2024 21:50:15 -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-next PATCH 0/3] Dynamically allocate BPIDs Date: Wed, 24 Jan 2024 11:20:11 +0530 Message-ID: <20240124055014.32694-1-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9eo182zJPzrnfbltQxc414xJzv9JzVBi X-Proofpoint-GUID: 9eo182zJPzrnfbltQxc414xJzv9JzVBi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_02,2024-01-23_02,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788949776647434386 X-GMAIL-MSGID: 1788949776647434386 |
Series |
Dynamically allocate BPIDs
|
|
Message
Geetha sowjanya
Jan. 24, 2024, 5:50 a.m. UTC
Current hw support 512 backpressure(BP) Ids. These BPIDs are statically reserved among 4 interface types based on number of channels supported. Latest HW support configuring multiple BPIDs per channel. To support this feature, the patch set creates BPIDs free pool from the BPIDs reserved for LBK channel as, LBK uses single BPIDs across multiple channels and on request it dynamically allocates N number of bpids from the free pool. This patch also reworks the LBK device id checks. Geetha sowjanya (3): octeontx2-af: Create BPIDs free pool octeontx2-af: Add mbox to alloc/free BPIDs octeontx2-af: Cleanup loopback device checks .../ethernet/marvell/octeontx2/af/common.h | 1 + .../net/ethernet/marvell/octeontx2/af/mbox.h | 32 ++ .../net/ethernet/marvell/octeontx2/af/rvu.c | 14 +- .../net/ethernet/marvell/octeontx2/af/rvu.h | 21 +- .../ethernet/marvell/octeontx2/af/rvu_nix.c | 387 +++++++++++++++--- .../ethernet/marvell/octeontx2/af/rvu_npc.c | 8 +- .../ethernet/marvell/octeontx2/af/rvu_sdp.c | 6 +- 7 files changed, 404 insertions(+), 65 deletions(-)
Comments
On Wed, 24 Jan 2024 11:20:11 +0530 Geetha sowjanya wrote: > Current hw support 512 backpressure(BP) Ids. These BPIDs are > statically reserved among 4 interface types based on number > of channels supported. Latest HW support configuring > multiple BPIDs per channel. To support this feature, the > patch set creates BPIDs free pool from the BPIDs reserved for > LBK channel as, LBK uses single BPIDs across multiple channels > and on request it dynamically allocates N number of bpids > from the free pool. This patch also reworks the LBK device id > checks. I looked at this for 20 min, I don't understand how this fits together. Please improve the commit messages to also explain the functionality and how user interacts with the features.
> -----Original Message----- > From: Jakub Kicinski <kuba@kernel.org> > Sent: Friday, January 26, 2024 7:47 AM > To: Geethasowjanya Akula <gakula@marvell.com> > Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; > davem@davemloft.net; pabeni@redhat.com; edumazet@google.com; Sunil > Kovvuri Goutham <sgoutham@marvell.com>; Subbaraya Sundeep Bhatta > <sbhatta@marvell.com>; Hariprasad Kelam <hkelam@marvell.com> > Subject: [EXT] Re: [net-next PATCH 0/3] Dynamically allocate BPIDs > > External Email > > ---------------------------------------------------------------------- > On Wed, 24 Jan 2024 11:20:11 +0530 Geetha sowjanya wrote: > > Current hw support 512 backpressure(BP) Ids. These BPIDs are > > statically reserved among 4 interface types based on number of > > channels supported. Latest HW support configuring multiple BPIDs per > > channel. To support this feature, the patch set creates BPIDs free > > pool from the BPIDs reserved for LBK channel as, LBK uses single BPIDs > > across multiple channels and on request it dynamically allocates N > > number of bpids from the free pool. This patch also reworks the LBK > > device id checks. > > I looked at this for 20 min, I don't understand how this fits together. > Please improve the commit messages to also explain the functionality and > how user interacts with the features. Will rework on the commit message and submit v2.