Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp513717lqj; Sun, 2 Jun 2024 08:46:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU0wPFptq4HpRUI4V2BNvh4pej+kk4uBtDQmo5ICk/M6TDAogbYENXgJE8Y+o7jEqocAKqEiOo7YdgLLAgZfeih1dpwPF5ebFkXTgrSg== X-Google-Smtp-Source: AGHT+IHTdxtOQLnf8K0J2pqyFQgtDc9ip0wGO/pbPWSSI3SiW0FSlV0WGUhRbxg1szBaPfSnTr8w X-Received: by 2002:a17:906:27ce:b0:a68:f8b9:ffa3 with SMTP id a640c23a62f3a-a68f8ba0035mr86942666b.46.1717343161461; Sun, 02 Jun 2024 08:46:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717343161; cv=pass; d=google.com; s=arc-20160816; b=L1p7BfHmtWHfiA3pYnsymPA4s6Lfpxh6VkzKkI7uqKP3poxP63eXRfhdmphRKD751I DGbX+V+2VQ1HGFN6Yaj/NjW/rPQl0yzJG6iUb8tg4eWROri/wBAhZ0fdnuaruE3Xvjvk DdBzN4JAHRnmFbjMnD+5iGHWH5HMR95e/x4HA8wrCzLXhmU+wtU+svCTdYm0Id7DF1Wa +npLKO5uK3s6L4phhYm+DxwdqXCs2irRb7u2t6F72q4Du7rVk4W7FOdybTeeXcAwE6z9 Y3dTaxJi5dMXfEkyJreY1FWbq1bYu4y0ip/PK5DFChjUsY1yYQHs/UvnnWNgUdkNuiUc VxKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P0IunT5E4kP03Ju05n5fpl6v0D6JN754xrn2B0poXdM=; fh=ZxGHAhTN2Fne2+i60fJZx66y/ypf55Z7izXGr4RwOgs=; b=fCSgQHIu/oyXuOlOHg+ulzJ9tMq/zi74h3ZKEyLNylzAztDaS74qpqpyZsaC7B3QVA TOSDY/qYfqIyvBU79tSwAUQpBTamFkdnNzuhedF3r5gj4vp6BPXQgrr1hPPHX4L1AiEZ h+Lg5Hji5T8XKKgxC/UbQORR7cOgzlPckQqW6pSOC6FP/io5bCzMeieZ65oiyKZI94eL jbjts4SluXmCUwfTQ6df9yzI1/VJ2BYPikklz6X4ruHuwNtmNlOAikfzzbsOiTw2MKYM jVcKL6jcYtShsL0TthfnS9YeV3G+oZB/ToDJcRuWYTK7wPu9nNnZtJBl/GPwlaEV6uHh XQPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qrwTJ06U; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-198333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68f256107esi73555166b.683.2024.06.02.08.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 08:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qrwTJ06U; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-198333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2104B1F215CB for ; Sun, 2 Jun 2024 15:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03F8B4AEE0; Sun, 2 Jun 2024 15:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="qrwTJ06U" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 BA8BC17736; Sun, 2 Jun 2024 15:45:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717343148; cv=none; b=R6RcEGKDNUFEATpZlV+iApXBn0CoMBVImNlG+Ri+mv1DjjoRgapXfp+bGGw1jSCnnwU/cZJ9lf/ZvR1Gcuk43WbDfVXaIqoT8ZJv1bwtQri3oivy96OSGO6wTugPyzlo+MIhE8YTCHZdUwzrHOOWjKKIp2vl/7WnCstCsgq4Dsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717343148; c=relaxed/simple; bh=LZHz46gZY0Uo9hNwDp7vSBscpdT7ixIYgNYA5g2hde4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S4isz4kvxdWt5GELrVOeu92QPJCugFAbiXWZu+vTQmf09NmYaU9GrB1qWiF5NLqK70jZDrZig5raYja3yQ8N6Fkx1TFC8Tb7I/qc+1tRLNZ6OF1x0KHKMzICJBD23f0ewlpR+PnI/VKQeNEssM82OcDJdwAB55hWlrKmrghMZ7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=qrwTJ06U; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=P0IunT5E4kP03Ju05n5fpl6v0D6JN754xrn2B0poXdM=; b=qrwTJ06UWxG9noO5YDvcSBOtGW KHzgAILPHxG9rf1O2+ugBoT+4dlqXjVUo8zS+QF1uln9n8X7tUsb8tMV7CtXLfNcF0RvN5pSYIJgw S3pMiySWVjkKPwHxnv6MP9gScyzIlYm1tgmmNwEWeyy/vM00ImWWwA7BhCUbQ1GxAXg0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sDnOj-00GdQu-AP; Sun, 02 Jun 2024 17:45:29 +0200 Date: Sun, 2 Jun 2024 17:45:29 +0200 From: Andrew Lunn To: Yojana Mallik Cc: schnelle@linux.ibm.com, wsa+renesas@sang-engineering.com, diogo.ivo@siemens.com, rdunlap@infradead.org, horms@kernel.org, vigneshr@ti.com, rogerq@ti.com, danishanwar@ti.com, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, srk@ti.com, rogerq@kernel.org Subject: Re: [PATCH net-next v2 0/3] Introducing Intercore Virtual Ethernet (ICVE) driver Message-ID: <8f5d2448-bfd7-48a5-be12-fb16cdc4de79@lunn.ch> References: <20240531064006.1223417-1-y-mallik@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240531064006.1223417-1-y-mallik@ti.com> On Fri, May 31, 2024 at 12:10:03PM +0530, Yojana Mallik wrote: > virtio-net provides a solution for virtual ethernet interface in a > virtualized environment. > > There might be a use-case for traffic tunneling between heterogeneous > processors in a non virtualized environment such as TI's AM64x that has > Cortex A53 and Cortex R5 where Linux runs on A53 and a flavour of RTOS > on R5(FreeRTOS) and the ethernet controller is managed by R5 and needs > to pass some low priority data to A53. > > One solution for such an use case where the ethernet controller does > not support DMA for Tx/Rx channel, could be a RPMsg based shared memory > ethernet driver. virtio-net is very generic and vendor agnostic. Looking at icve, what is TI specific? Why not define a generic solution which could be used for any heterogeneous system? We are seeming more and more such systems, and there is no point everybody re-inventing the wheel. So what i would like to see is something similar to driver/tty/rpmsg_tty.c, a driver/net/ethernet/rpmsg_eth.c, with good documentation of the protocol used, so that others can implement it. And since you say you have FreeRTOS on the other end, you could also contribute that side to FreeRTOS as well. A complete open source solution everybody can use. Andrew