From mboxrd@z Thu Jan 1 00:00:00 1970 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 D1F633C01; Thu, 25 Sep 2025 01:10:50 +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=1758762650; cv=none; b=YhmvZTCy8agaE0n1w3gyeNwXc3mOKP9ip9FBlO5aGWt1T1zFfMGxiQ0t43ikadlegEDwDjOsqu2BPWUphGayW8NFxcGcqv/8Yih90mWYVLXbRVCGL85JiX8TLKX9IB6mlPr1iogbexKK5NU12VY1PTxOArPxQxlOrstSi/meKec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758762650; c=relaxed/simple; bh=+YRCX0Im4JXXmFeEz7AT5h201nBv0DiObZSjc3IzbBQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PXx65lqqvxOngp6DdcV7uigMw0sCUW4929IxREo2DN56HCrKyL1+uOOSRNnNUSaWYKpbz7lJArJx4zKfhBhqIqILdd89Aad6sVeO3zb68pbY83+xIgrOmJGBrJw9cdRj+6gK9SwtyryHT7mCQzNlLeRBMeN/UIEltrywwzzlcqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y7KInrpc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y7KInrpc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 362D2C4CEE7; Thu, 25 Sep 2025 01:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758762650; bh=+YRCX0Im4JXXmFeEz7AT5h201nBv0DiObZSjc3IzbBQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Y7KInrpcytY/4JWTreLsSJP26y9pDb9J4gGT7ofLOzCQarlpb9Lb6yOufHOXLUk14 erxlpQVpvWuUuzvkWVxDIkq4D+jVovoxgW2IYyif1WVpTVjlg5h2ENQhRR2Qb1+bXr fBl5iidArPKWScOAcXR4uM6zJNy0J9/qWeFobz3xitY6fU61a7xP959NKhJ9aaNp3X hfLJCuaBAAdBu0mWkHfdsDejj1y/uPf/gERlfwoGI/T7B/CxJ8IUPcH2MB2gJDSr0U qAsIe4sLQtBQDHbb3lV/ri+0Ingl3DScMaxkaNEj8xU7IZEe1JGbCNit6lH94/AEsZ m2koEPnmz44zQ== Date: Wed, 24 Sep 2025 18:10:49 -0700 From: Jakub Kicinski To: Sathesh B Edara Cc: , , , , , , , , , , Andrew Lunn Subject: Re: [net-next PATCH v1 1/2 RESEND] octeon_ep: Add support to retrieve hardware channel information Message-ID: <20250924181049.1ab2dc56@kernel.org> In-Reply-To: <20250923094120.13133-2-sedara@marvell.com> References: <20250923094120.13133-1-sedara@marvell.com> <20250923094120.13133-2-sedara@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Sep 2025 02:41:18 -0700 Sathesh B Edara wrote: > + channel->max_rx = CFG_GET_PORTS_MAX_IO_RINGS(oct->conf); > + channel->max_tx = CFG_GET_PORTS_MAX_IO_RINGS(oct->conf); > + channel->rx_count = CFG_GET_PORTS_ACTIVE_IO_RINGS(oct->conf); > + channel->tx_count = CFG_GET_PORTS_ACTIVE_IO_RINGS(oct->conf); AFAICT you're using one IRQ for both Rx and Tx. The channel is basically an IRQ. So if you're using one for Rx+Tx you should be reporting the combined channel counts. -- pw-bot: cr