From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CCB152F12A5; Mon, 15 Jun 2026 20:56:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781556963; cv=none; b=NuwoAlLIQf2kiCANOcqsByTsIO6gEPB5+tBk8f9OxBEvCBHiVkYbVymi1XcFdgPawvbHjN0L8GsbabFZsj2R/cpT1R365+CCj5n1bf/wSBmXl1Vn+BX8vbmEPCrtab/THVXiD1H7a50YXfSah93InXVH9pE42QNgzrVZoaz9hmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781556963; c=relaxed/simple; bh=b5h4Pf5UZTZELYw4rjmk1n4kIxoGdyisixoTQqbHfVc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZPln1YGoUrTyjJxAXmiS4WUe1u7ns80ngfNEMLVY5HbrR5XfbH3QbokgKS+PB2a6rCP7OBlZG3T7sy9oHgTrpQlvFN7zdj4v4E0p2mitutHAwEDxMDVAfH/+gtmg4ZeYLTKEIo1CE3VcsyDtWZDIbjr8hDIQjnJcd2xqyFctmSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BHS0SKlR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BHS0SKlR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78C0E1F000E9; Mon, 15 Jun 2026 20:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781556962; bh=gwo8BfYbtWdTsD2kD2xvWmHwutXtNuD/7PfiuNBO8/k=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BHS0SKlRs9BWTFHWG8jt45niVzZI0nXhyyWGo/j7SBSS4Y8iBZUhF8B278ofv82oZ m5EAGBOl6+RXhwZ/zmQ8V9pU830ga8ZVlqpifn5p+kDgOWpsmnF2zy3tBFUbj/Bbb6 rgeJZHTPi5uKM6e4ZewyAhL0q6SvVj44dL3iQrTpijUyCJ0WHWKhJ+jLs2YOgtfJTF Rt0xfQK+CrVme1gkHDCzM7yRMb8InGbyfvOSa+lMKdtYdKQqgQ0zAK/ao7L4RvLVJv AF2qQIovOW67CQ3OdU5FMy0dmlE+C/9vNlys6llhcSC3mdzosAuuvcIAIbN3uNhlDO LSW/zrfv+RTFg== Date: Mon, 15 Jun 2026 13:56:00 -0700 From: Jakub Kicinski To: Parvathi Pudi Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, danishanwar@ti.com, rogerq@kernel.org, pmohan@couthit.com, afd@ti.com, basharath@couthit.com, arnd@arndb.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, pratheesh@ti.com, j-rameshbabu@ti.com, vigneshr@ti.com, praneeth@ti.com, srk@ti.com, rogerq@ti.com, m-malladi@ti.com, krishna@couthit.com, mohan@couthit.com Subject: Re: [PATCH net-next 3/3] net: ti: icssm-prueth: Support duplicate HW offload feature for HSR and PRP Message-ID: <20260615135600.655e4be4@kernel.org> In-Reply-To: <20260611123636.376577-4-parvathi@couthit.com> References: <20260611123636.376577-1-parvathi@couthit.com> <20260611123636.376577-4-parvathi@couthit.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 Thu, 11 Jun 2026 18:03:28 +0530 Parvathi Pudi wrote: > From: Roger Quadros > > In HSR and PRP modes each outgoing frame must be sent on both PRU slave > ports. > > Previously the driver was writing the frame into each port's transmit queue > independently after updating the tags resulting in performing two OCMC > buffer copy operations. > > Frame duplicate offloading is implemented with a common shared queue > between the two ports. The driver writes the frame once into OCMC RAM, > each port reads from the shared queue and replicates the transmission to > both PRU ports, synchronising between PRU ports are maintained within > firmware with appropriate handling. > > For HSR the driver inspects the encapsulated ethertype in the HSR tag. > PTP frames (ETH_P_1588) are sent on the directed port only to avoid double > duplication and all other HSR frames are duplicated to both ports. > VLAN-tagged HSR frames are handled by advancing past the 4-byte VLAN header > before reading the HSR tag. > > For PRP the driver checks the 6-byte RCT trailer for the ETH_P_PRP suffix > to identify redundancy-tagged frames. Frames without an RCT are sent on the > originating port only. Warning: drivers/net/ethernet/ti/icssm/icssm_prueth.h:113 struct member 'host_recv_flag' not described in 'prueth_packet_info' Please note that net-next will be closed for the next two weeks. -- pw-bot: cr