Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp516147lqj; Sun, 2 Jun 2024 08:54:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTYD73s/uHDKHEiAcaYAXghWRp6B1xc7GV7WQOp69fz/psSrgw7N6C6oNC8IC7+xK9YtyB7hD9fhuobpeNyipJb3pvWy4gJ/lGzXij6Q== X-Google-Smtp-Source: AGHT+IGTQ59V2Mu9ZYnyGxu6hazcYaqx/LL1dSJYJLdwp8KQQzmTM0W53O0OK3HubuyL5b0s1GgF X-Received: by 2002:a17:90a:cc0c:b0:2c1:a7e7:bb1c with SMTP id 98e67ed59e1d1-2c1dc573627mr6327413a91.16.1717343669397; Sun, 02 Jun 2024 08:54:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717343669; cv=pass; d=google.com; s=arc-20160816; b=Uq0P62GAyxibdqCNS9XeLPEE+S0tYYtScEiTlwIyxYlPsnd+PF29jlG9V87WsjcQrY SNmbJgPdzlcDL1CI4mlrv2v+Zjt3077KQKSTzaZrh4kGVibJOx81kU6UjKVQ42ubKBJ6 dS2OGOrfZ3tSUYn6uMkI0qOToDgQ2R39V3lg4vlU7JJChXtM9Wb82kydQpRRe6tvv9zf TOZyCdoHOpoWqGRyeGW3GW7ZtRG3oUbVCcOb7C3JpAT3v0Mj6jHwkuXWE2WgwTwFkIXG AO1micr0LME5cHn+VQ093Lyzoy+uVysnky3LaAOUBypA6gU7/md2+SnG+tV6NJis69fd nYeg== 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=jAp9ulkP+aIOZlRN7+1gRLXP/ryNz1Huu1tcBNgtGD0=; fh=MwEsyrr7GfSWMTYnfhllbACIg3QC7DfVy5MjYAogGas=; b=WN6PN/dXVXnnNsDCnyPqEWjIYKkJxMqvD+VoIqDxth6p0x04uKrzgZ+p9IFiUyXu/Y mhx99/XtA17m++ayzpLqeDXEsY5fHOmipLRD3Jr3vSgqhzVkxWqgq/Vx/jRckMbwdDOR oGiTZ90cumUTE/h5ItdUJS7Yu5Pvl1Cc05KOJzLBkxzrjPgZ4HQwscNSFqWa8VUOGFyT Rom04WqGy3aN3qMSrnfs6Ms+J48TJeIJAstB9MdRORct3jA/IWCIC6OTVaelZ1Jcih+C RJHWWKE3jcoMDAUp9TrzFgyXbsSKLed7bActja6CcA/hhWQlT/ioToJSNUQOr6bKbwqX JDmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZehAeZcv; 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-198345-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a77b7183si6985564a91.91.2024.06.02.08.54.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 08:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198345-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZehAeZcv; 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-198345-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198345-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 081B6282386 for ; Sun, 2 Jun 2024 15:54:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1137A4C634; Sun, 2 Jun 2024 15:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="ZehAeZcv" 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 A3B4813AF2; Sun, 2 Jun 2024 15:54:18 +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=1717343660; cv=none; b=KLUGJm9Te39Gs/IxsCzcVMtucs+KF88ak9ylwi4vMs3tNFNmq4ninrXiBz8E5FWmXV0QKfA6jNtV8qbQ9VtCHSG/hWceoBP9yMpZf/Oebtlvy8wqmvsGJFdXiqrrNgRLJN4KgdP08Zu+4NpnPKvlACmPZw+Z9d+76m25lU0bmfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717343660; c=relaxed/simple; bh=O8x9QJjrChVP+uJek3aA1p8gux7bi0OdNCSQ/EwzXYM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A1cuLfXLAYSjYm7CRzkLc5kshkCzrCBZFkTKjdJFUxwGZOntpkMZJMcnYKPdn0UC+ADFyVF1VxQuos77rSwrlOLc7fPk6eOpMneb9qbl6GaH+/S/33oDKOkvgzGVo023/rrAZ6rXfJovfDcF7BVkAy2KacdCX9oL/8nwRtf5bCE= 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=ZehAeZcv; 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=jAp9ulkP+aIOZlRN7+1gRLXP/ryNz1Huu1tcBNgtGD0=; b=ZehAeZcvlmuFe91tGL05XO7Yta W+UTUi4HdWUITRmOA6euQ6KGGqfE41bGfxW86WhQ5XnjCEKQaREP1rGz7IoL6vec6C2MAmk69DS7v FY2IjDQQAqy/TaQGI1DVdmPcQyW7q6BqNkPDdUT2yUrWSBhVWQcApeV525APxecWxcnI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sDnX6-00Gdvb-37; Sun, 02 Jun 2024 17:54:08 +0200 Date: Sun, 2 Jun 2024 17:54:08 +0200 From: Andrew Lunn To: Siddharth Vadapalli Cc: Yojana Mallik , 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 2/3] net: ethernet: ti: Register the RPMsg driver as network device Message-ID: <16504fb9-f786-492b-8982-b46854a7de1e@lunn.ch> References: <20240531064006.1223417-1-y-mallik@ti.com> <20240531064006.1223417-3-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: > > +#define ICVE_MIN_PACKET_SIZE ETH_ZLEN > > +#define ICVE_MAX_PACKET_SIZE 1540 //(ETH_FRAME_LEN + ETH_FCS_LEN) > > Is the commented portion above required? I would actually say the comment part is better, since it gives an idea where the number comes from. However, 1514 + 4 != 1540. So there is something missing here. > > struct icve_port { > > + struct icve_shared_mem *tx_buffer; /* Write buffer for data to be consumed remote side */ > > + struct icve_shared_mem *rx_buffer; /* Read buffer for data to be consumed by this driver */ > > + struct timer_list rx_timer; > > struct icve_common *common; > > -} __packed; > > Is the "__packed" attribute no longer required, or was it overlooked? Why is packed even needed? This is not a message structure to be passed over the RPC is it? I think this is the second time code has been added in one patch, and then removed in the next. That is bad practice and suggests the overall code quality is not good. Please do some internal reviews. Andrew