Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1611683lqs; Sat, 15 Jun 2024 18:09:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyNo71NJcHa1eS7V/WkerITAomkNIUwco2g+xvp84dSJ4qi8ij99z+vsxKrzA29Pevukmgtoy0yNJk5MWfP7BhTD2lHQgVhUZAgVLttA== X-Google-Smtp-Source: AGHT+IHZIBop8bpiYIh2aOXKACrjW44TwgD9PQ3gLgSGSC8bQ1P932nMr17hfACNoeRLLBhKdJN7 X-Received: by 2002:a05:620a:2952:b0:795:b102:7a8a with SMTP id af79cd13be357-798d269ff62mr751072385a.52.1718500153342; Sat, 15 Jun 2024 18:09:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718500153; cv=pass; d=google.com; s=arc-20160816; b=U5liVIH0hIzZY0+3LlWbDevggjioSG3yg5jmYlN9fEpSkoZyIkwOhwN5dZQVYdE9Xi dbAncvinBfwelYReukvKfneCVG9r5f66PIK1GunAJQROq51Ol8n0JLM8718rECOb2LDJ Wr8VPm0XBk0+N1bjRSE4jclzgLSt4SEhJZKplDdSGI/fvaID1189PuGf6MGFxYkm9Q+6 XNOypN8icLF2oSC659So5oOUNgEol2BUndL1GfJ6e0IgTaid/4omKJcPbKjYxB4ZpVXF WnDsblb3fu6q1qoCtCpKA0N0bIpkHYX1pFfJa85hyE4hdu4EthoUU8TDvYiZRpblk27L cK2g== 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=VMgOaKbDyzjHCgUb9Jf5r6hZWkNjR/kmgzL4IDgUn4I=; fh=Mx2OU0HEm4C/rj1MpuE1z8IqmWPT/N80jKsscDj24QI=; b=qec3nxj0NDLikrBa3Wg9JJVVosVE537E8fD0BaO5VRp81kWqMh+QJ96hgaIUMMwd6i ystIbZV80JljW5dzlUpiczEAyFXhT7z/srgyQXFt282wYMeuP1xVUtL56XuEttxBrr/G 9jaq5l+t8j2SOFpEFIvjoYUwaNNsackUKtXH5xH87D6JYTEC+pMKDhmPt73ghx6vvzHO YDYfDdcfDT5St8M65bNPcOu0Wm89Nd+zUx3cMSggMeMuWKcGx5y0ZV9jbzk6b5pklFlR 2asArSkxD4V5xYgI3vcY85LLOTZ9lviDbX81BD15w6eCtJ2ERbR19YmuViwqkf5Lik7x AHbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tQK2n0q6; 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-216073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798ab9f9a8bsi388655785a.355.2024.06.15.18.09.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 18:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tQK2n0q6; 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-216073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216073-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F403F1C20F04 for ; Sun, 16 Jun 2024 01:09:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 999878821; Sun, 16 Jun 2024 01:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="tQK2n0q6" 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 5D9743D6B; Sun, 16 Jun 2024 01:08:58 +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=1718500139; cv=none; b=SfsiFbVI4o2pfVOBBiGC3EXjzLwP4Rv96WZDygcZAQ2A3K2KrhCV9SVAwPJbd7VWSY9deaxFXkfY2Gsocf360Dj/NWIQ+Z678VjdJ+aPjlVNYdxYg7Ev0LE9qxfDT2yR5id1NEwj4S7LXPGDIBEUmrVLpW/Z3rpRSBYbIHGJFPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718500139; c=relaxed/simple; bh=f/6jXAA5bkn2tTbm2isTLSDP0zxxYC5Prpj3EhO1iAQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uJBx8z4IwhSAyqSkSAA2pRCKf3CntqoyQ3C1tIT3yQyfFekt0MrO7xvwrq8s1tLqxD+HWmC+ROcHbxXrZGPWAF7dwsNBNE4s9D7kMzXnx8+mzi5lm4IyFj+c+VI5kiSLHFxVbVeUJq0JyeBIMHPyIB5zyzQCqyHELb+vGQu7d74= 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=tQK2n0q6; 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=VMgOaKbDyzjHCgUb9Jf5r6hZWkNjR/kmgzL4IDgUn4I=; b=tQK2n0q6YxQ1MOpicvrGXzAe5z hkkOiwDLzavAsBQEQsj5IJYut7t6wgSt4/KZx3rGh6A0B+8IWeFUB+91gJREvJ9bwRnN0TNjqgyld bE1JPQw/QKCIvaag4Gcl/Ihe6+z+kCePrXwNDSbyKWPsnhFxnN2otsc5d6XA4t/M30is=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sIeO7-0009sQ-Of; Sun, 16 Jun 2024 03:08:55 +0200 Date: Sun, 16 Jun 2024 03:08:55 +0200 From: Andrew Lunn To: Zhu Yanjun Cc: Omer Shpigelman , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, dri-devel@lists.freedesktop.org, ogabbay@kernel.org, zyehudai@habana.ai Subject: Re: [PATCH 09/15] net: hbl_en: add habanalabs Ethernet driver Message-ID: <61476e92-aba4-4726-984c-d845e5fc4dd3@lunn.ch> References: <20240613082208.1439968-1-oshpigelman@habana.ai> <20240613082208.1439968-10-oshpigelman@habana.ai> <38b9797e-d213-422e-8b2b-7a31f5924b55@linux.dev> 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: <38b9797e-d213-422e-8b2b-7a31f5924b55@linux.dev> > > +static void hbl_en_reset_stats(struct hbl_aux_dev *aux_dev, u32 port_idx) > > +{ > > + struct hbl_en_port *port = HBL_EN_PORT(aux_dev, port_idx); > > + > > + port->net_stats.rx_packets = 0; > > + port->net_stats.tx_packets = 0; > > + port->net_stats.rx_bytes = 0; > > + port->net_stats.tx_bytes = 0; > > + port->net_stats.tx_errors = 0; > > + atomic64_set(&port->net_stats.rx_dropped, 0); > > + atomic64_set(&port->net_stats.tx_dropped, 0); > > per-cpu variable is better? Please trim replies to just the needed context. Is this the only comment in this 2300 line email? Do i need to keep searching for more comments? Andrew