Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp941814lqj; Mon, 3 Jun 2024 05:55:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1lPXRFoER3XeTfB6GbNFzqh0JnWaoN3Y0LxgY5PeqESUqjzafqwsKV4zfwxBo45NHQFVCrQxUpHXjn5QWDprdIrRTJA7Qle3rdxoGHQ== X-Google-Smtp-Source: AGHT+IG7Ky6HP9Y5ZuvP56pOVhWMF2LtunD1GwhTUfi4Y+zR5d+zRHbHHd7Zosgorax/OqbaK16t X-Received: by 2002:a50:a44f:0:b0:578:635d:67bc with SMTP id 4fb4d7f45d1cf-57a363553c4mr6230022a12.3.1717419326531; Mon, 03 Jun 2024 05:55:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717419326; cv=pass; d=google.com; s=arc-20160816; b=qVYW7bKu4KTW3nmp1fTvFJmHYQ7EpyS/cjNK8CQXPkaI2QPAmx5ceLikfaYQSALQA7 WEw1JBRzCb35pkXysWPEcb3nLu5Sdnx5cQk17ZGsfVvGEQ/iVHHbw1Kf1/Z7jmuFu6fx Xm8icXVzxiOhR3k/+0lQWelToLrAToXk1j7iU1ObUWRffScj2L/wtvk6TQQ/fAhXlUBX 7RuGe53EqZ0AaHULGlvfPjV9Ar/drDRcJx0qNDYa6ylN7pIFEFd09Hx8b75Ld6wgal/Z 2YIoeyxFBZym68t2fMo3cQET7SubQKKB8vE+syNx1d1lV+7yAbXUewkNCUx8PLVYPV7l OC8Q== 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=k3zi+BtUVkLV4ak06ZQFcUP+j95KYU+wWjPkD8Hh1mA=; fh=kKlMTrObu0S6yFPzacyo5+gl3PWiatLOSPqtAho06Jk=; b=FTvYiRMxVVTt1LOyzNFaBxBW+Wv8L4jeRKHtxHxx5Q0X2m2BhzMdti3z/YTEl6Vium Qkhrn9rHSRTWquFE70+wY0i7xVS7Tmw7WfoJV7aUtfi+XAnkHR2tllQwQsWI8jxo0suT Ysp1XL6EPbiDrVA+mMTrsiE+frsaTjMOtwvomWTACc/kKlJtGavY6suXI3ETaDckCocs iZY+0tZVQSndxlQ4pROGnObbOpXds+WW/yomCf81zF6NLgy5pJL5dd4zMen8fLkBWuxD IHkdKKQeXz2RacpG9W3ZxYyuJicJsMv5aaLB3+NpPbHaEzM3vFdIcyviR2PheetSDwFc oH0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="3wW+9H/V"; 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-199144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199144-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. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a4b46f36bsi2675180a12.190.2024.06.03.05.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="3wW+9H/V"; 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-199144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199144-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 3ED4C1F22DAD for ; Mon, 3 Jun 2024 12:55:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAD2F12C7F8; Mon, 3 Jun 2024 12:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="3wW+9H/V" 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 E14BA12BF3D; Mon, 3 Jun 2024 12:55:13 +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=1717419316; cv=none; b=o2yt3YHjEXXDZWsmRiUVFDSPWOgVnq3xMgfzIvxoXt8R4a1otxWqmPFU3DzjuPMVsQ6JO+CNOCT5lljQtyCtnavsZC9jBzPchBDCvBbsve82+pj/inYYPK6qhDOS+1u7XAokhdnXxHCD1BgqmwwMvY+Jqm8DdBWeE1Mw0mBhau0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419316; c=relaxed/simple; bh=op87+8r8O3Mu5KD/3h70GE8nRgroZsZIqPFDj5tkTyc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gdX4hau7Ox0EY5F7sCmPdLkuUj5SGlP+fAJcSFWODas3T59BfiOlbKPXLMpxCmWSeFnPs0IZprokjm/jeQRf718N4bN01qC+ix9jCIhylITytcgI1WDekNa/jAgXdUde//n5TUQb9U2ALaocyR6HLjcGsrRFpdAXIOFvweLe064= 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=3wW+9H/V; 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=k3zi+BtUVkLV4ak06ZQFcUP+j95KYU+wWjPkD8Hh1mA=; b=3wW+9H/VS/eqVfFrcyL9/cjet/ Z8Fga8RgijpeSd8Cmqvx/30swWSAnR5e4vQumKq0v3Q2qhnntUUECq1Vs1oaYp567krr+z0Bz9Bcd balMSQ6BcwRWonxLx+11wGpyuf39ZcuWcgK69Zhmwydrw2XABg/SdThgp8PBf9xcyrEc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sE7DF-00Gi09-Ji; Mon, 03 Jun 2024 14:54:57 +0200 Date: Mon, 3 Jun 2024 14:54:57 +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, s-vadapalli@ti.com Subject: Re: [PATCH net-next v2 1/3] net: ethernet: ti: RPMsg based shared memory ethernet driver Message-ID: <08696402-e0e3-4559-a02d-84cac79871ab@lunn.ch> References: <20240531064006.1223417-1-y-mallik@ti.com> <20240531064006.1223417-2-y-mallik@ti.com> <389e1f57-1666-4298-a970-74f730740e4c@lunn.ch> <319616d8-533e-48c6-b97e-6285d284ac9e@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: <319616d8-533e-48c6-b97e-6285d284ac9e@ti.com> On Mon, Jun 03, 2024 at 02:26:06PM +0530, Yojana Mallik wrote: > Hi Andrew, > > On 6/2/24 21:51, Andrew Lunn wrote: > >> +struct request_message { > >> + u32 type; /* Request Type */ > >> + u32 id; /* Request ID */ > >> +} __packed; > >> + > >> +struct response_message { > >> + u32 type; /* Response Type */ > >> + u32 id; /* Response ID */ > >> +} __packed; > >> + > >> +struct notify_message { > >> + u32 type; /* Notify Type */ > >> + u32 id; /* Notify ID */ > >> +} __packed; > > > > These are basically identical. > > > > The first patch introduces only the RPMsg-based driver. > The RPMsg driver is registered as a network device in the second patch. > struct icve_mac_addr mac_addr is added as a member to > struct request_message in the second patch. Similarly struct icve_shm shm_info > is added as a member to struct response_message in the second patch. From > second patch onward struct request_message and struct response_message are not > identical. These members are used for the network device driver. As this patch > introduces only RPMsg-based ethernet driver these members were not used in this > patch and hence not mentioned in this patch. I understand this has led to the > confusion of the structures looking similar in this patch. Kindly suggest if I > should add these members in this patch itself instead of introducing them in > the next patch. I think your first patch should add documentation of the whole protocol. With a clear understanding of what the end goal is, it becomes easier to understand the step by step implementation stages. Andrew