From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACC12C369D7 for ; Wed, 23 Apr 2025 17:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To :Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PFahOJT/XPKy6y6TVuDHme8t7kFk5cPysIr1Il7csT8=; b=ZcCHGjETiHkR469w6VnlD4Lz2y SKdN692BmObtKM4PuatjtgLdjq8Nng+81MJ0RjTOyjC9VRYzBAC3DDq1hcyBXN4eYgZN1g68+87zk cEXEpwKzi53WfqeTvWvJzZm9T2p5JsU2foOnfidHLC6liJpxUywjpdVQSue3NuzxHcgT/UtcfIH7H T0pApWq2BYCbRHDlRwnCZFIfiiBM+R/KDUOOfsRbJsTAStOpFHq3x7cyg3NOObjN1PmdMAshIrpR/ dpz/5vZ2zCaO1yJzuMRzVNr0FbCnKwkeTQXr8VGPUeOTUBlFFzhglX/tcLceKhaw6VXHVXUoqA5ZH R0BjFtbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u7e8m-0000000BNxx-0Go5; Wed, 23 Apr 2025 17:44:08 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u7d3N-0000000B9LN-3wSt for linux-arm-kernel@lists.infradead.org; Wed, 23 Apr 2025 16:34:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 1E7FEA4BD25; Wed, 23 Apr 2025 16:29:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C54D7C4CEE2; Wed, 23 Apr 2025 16:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745426068; bh=mN8F7NbzDaBbeVXijWSv4xXDoOWK3C4w28jSbiy3Hms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f9R+8h+VZLxdc49EdXOrzCaWtvHbYKtHhsO9lJ2niGl1lNAuUgTvPqh/fv5wPfH2u VfzW/eVzN043ohsT93YB9Z9MIrfIHcXEXps2WRxByoc8gS/Ut13n205MlcO6ormi0w A2qH+i78VNkk37qvbeNXaIFeQQRnRbvxr7JCPe9sOUQocH4BJHAYTmGTuc0v8mz90s wCDNXL8O7OWik/DhIrSIhHXPCuqYMzZTVgUGkFrov4FiIO9whDyJFAtFHob0un8H2z 2h/VNx751b85E3BbY8c1O7e1D7vNGb4xTuGpp1SV30peT/2SAgO+5W6yRPT9alwKp1 9yUQ8xYmE/qlA== Date: Wed, 23 Apr 2025 17:34:19 +0100 From: Simon Horman To: Parvathi Pudi Subject: Re: [PATCH net-next v5 05/11] net: ti: prueth: Adds ethtool support for ICSSM PRUETH Driver Message-ID: <20250423163419.GE2843373@horms.kernel.org> References: <20250414113458.1913823-1-parvathi@couthit.com> <20250414130237.1915448-6-parvathi@couthit.com> <20250423162816.GD2843373@horms.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250423162816.GD2843373@horms.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250423_093430_115090_73003BA7 X-CRM114-Status: GOOD ( 24.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nm@ti.com, vigneshr@ti.com, tony@atomide.com, edumazet@google.com, glaroque@baylibre.com, pmohan@couthit.com, diogo.ivo@siemens.com, robh@kernel.org, javier.carrasco.cruz@gmail.com, praneeth@ti.com, m-karicheri2@ti.com, basharath@couthit.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, devicetree@vger.kernel.org, conor+dt@kernel.org, schnelle@linux.ibm.com, mohan@couthit.com, s.hauer@pengutronix.de, prajith@ti.com, rogerq@kernel.org, jacob.e.keller@intel.com, ssantosh@kernel.org, linux-arm-kernel@lists.infradead.org, rogerq@ti.com, srk@ti.com, pratheesh@ti.com, m-malladi@ti.com, netdev@vger.kernel.org, rdunlap@infradead.org, linux-kernel@vger.kernel.org, danishanwar@ti.com, afd@ti.com, andrew+netdev@lunn.ch, krishna@couthit.com, krzk+dt@kernel.org, davem@davemloft.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 23, 2025 at 05:28:16PM +0100, Simon Horman wrote: > On Mon, Apr 14, 2025 at 06:32:31PM +0530, Parvathi Pudi wrote: > > From: Roger Quadros > > > > Changes for enabling ethtool support for the newly added PRU Ethernet > > interfaces. Extends the support for statistics collection from PRU internal > > memory and displays it in the user space. Along with statistics, > > enable/disable of features, configuring link speed etc.are now supported. > > > > The firmware running on PRU maintains statistics in internal data memory. > > When requested ethtool collects all the statistics for the specified > > interface and displays it in the user space. > > > > Makefile is updated to include ethtool support into PRUETH driver. > > > > Signed-off-by: Roger Quadros > > Signed-off-by: Andrew F. Davis > > Signed-off-by: Basharath Hussain Khaja > > Signed-off-by: Parvathi Pudi > > ... > > > diff --git a/drivers/net/ethernet/ti/icssm/icssm_prueth.h b/drivers/net/ethernet/ti/icssm/icssm_prueth.h > > ... > > > @@ -108,6 +114,119 @@ struct prueth_packet_info { > > bool timestamp; > > }; > > > > +/** > > + * struct port_statistics - Statistics structure for capturing statistics > > + * on PRUs > > + * @tx_bcast: Number of broadcast packets sent > > + * @tx_mcast:Number of multicast packets sent > > + * @tx_ucast:Number of unicast packets sent > > + * > > + * @tx_octets:Number of undersized frames rcvd > > + * > > + * @rx_bcast:Number of broadcast packets rcvd > > + * @rx_mcast:Number of multicast packets rcvd > > + * @rx_ucast:Number of unicast packets rcvd > > + * > > + * @rx_octets:Number of Rx packets > > + * > > + * @tx64byte:Number of 64 byte packets sent > > + * @tx65_127byte:Number of 65-127 byte packets sent > > + * @tx128_255byte:Number of 128-255 byte packets sent > > + * @tx256_511byte:Number of 256-511 byte packets sent > > + * @tx512_1023byte:Number of 512-1023 byte packets sent > > + * @tx1024byte:Number of 1024 and larger size packets sent > > + * > > + * @rx64byte:Number of 64 byte packets rcvd > > + * @rx65_127byte:Number of 65-127 byte packets rcvd > > + * @rx128_255byte:Number of 128-255 byte packets rcvd > > + * @rx256_511byte:Number of 256-511 byte packets rcvd > > + * @rx512_1023byte:Number of 512-1023 byte packets rcvd > > + * @rx1024byte:Number of 1024 and larger size packets rcvd > > + * > > + * @late_coll:Number of late collisions(Half Duplex) > > + * @single_coll:Number of single collisions (Half Duplex) > > + * @multi_coll:Number of multiple collisions (Half Duplex) > > + * @excess_coll:Number of excess collisions(Half Duplex) > > + * > > + * @rx_misalignment_frames:Number of non multiple of 8 byte frames rcvd > > + * @stormprev_counter:Number of packets dropped because of Storm Prevention > > nit: It looks like the documentation of @stormprev_counter should > be replaced by documentation of: > @u32 stormprev_counter_bc; > @u32 stormprev_counter_mc; > @u32 stormprev_counter_uc; > > > + * @mac_rxerror:Number of MAC receive errors > > + * @sfd_error:Number of invalid SFD > > + * @def_tx:Number of transmissions deferred > > + * @mac_txerror:Number of MAC transmit errors > > + * @rx_oversized_frames:Number of oversized frames rcvd > > + * @rx_undersized_frames:Number of undersized frames rcvd > > + * @rx_crc_frames:Number of CRC error frames rcvd > > + * @dropped_packets:Number of packets dropped due to link down on opposite port > > + * > > + * @tx_hwq_overflow:Hardware Tx Queue (on PRU) over flow count > > + * @tx_hwq_underflow:Hardware Tx Queue (on PRU) under flow count > > + * > > + * @u32 cs_error: Number of carrier sense errors > > nit: @cs_error > > i.e. remove "u32 " > > Documentation nits flagged by ./scripts/kernel-doc -none > > > + * @sqe_test_error: Number of MAC receive errors > > + * > > + * Above fields are aligned so that it's consistent > > + * with the memory layout in PRU DRAM, this is to facilitate easy > > + * memcpy. Don't change the order of the fields. > > + * > > + * @vlan_dropped: Number of VLAN tagged packets dropped > > + * @multicast_dropped: Number of multicast packets dropped > > + */ > > +struct port_statistics { > > + u32 tx_bcast; > > + u32 tx_mcast; > > + u32 tx_ucast; > > + > > + u32 tx_octets; > > + > > + u32 rx_bcast; > > + u32 rx_mcast; > > + u32 rx_ucast; > > + > > + u32 rx_octets; > > + > > + u32 tx64byte; > > + u32 tx65_127byte; > > + u32 tx128_255byte; > > + u32 tx256_511byte; > > + u32 tx512_1023byte; > > + u32 tx1024byte; > > + > > + u32 rx64byte; > > + u32 rx65_127byte; > > + u32 rx128_255byte; > > + u32 rx256_511byte; > > + u32 rx512_1023byte; > > + u32 rx1024byte; > > + > > + u32 late_coll; > > + u32 single_coll; > > + u32 multi_coll; > > + u32 excess_coll; > > + > > + u32 rx_misalignment_frames; > > + u32 stormprev_counter_bc; > > + u32 stormprev_counter_mc; > > + u32 stormprev_counter_uc; > > + u32 mac_rxerror; > > + u32 sfd_error; > > + u32 def_tx; > > + u32 mac_txerror; > > + u32 rx_oversized_frames; > > + u32 rx_undersized_frames; > > + u32 rx_crc_frames; > > + u32 dropped_packets; > > + > > + u32 tx_hwq_overflow; > > + u32 tx_hwq_underflow; > > + > > + u32 cs_error; > > + u32 sqe_test_error; > > + > > + u32 vlan_dropped; > > + u32 multicast_dropped; > > +} __packed; > > ... Oops, I seem to have replied to an old version of this patch-set. My comments above do still seem relevant to v6. But as v6 exits the comment below is nonsense. Sorry about that. > > The above notwithstanding, it seems based on comment's elsewhere in this > thread that there will be another revision of this patchset. Let patchwork > know about that. > > pw-bot: changes-requested >