Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp341590lqo; Fri, 10 May 2024 01:13:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwhH4OiUMnC3E7aIe8ICsB+QOSzBkOCm2UBhtefNkh6jc9LuQhVUqUxVvgDDrbNn7HoK9qUVHwZD81ZDfw3g/gifZY912K2hbjn/9EnQ== X-Google-Smtp-Source: AGHT+IEYQZttaS+2XUXreqO68HjfRz+PJ9ZpbcZLT0ESS3/HOQsfspZ6vYPFneq6FxeMgVLVA+6V X-Received: by 2002:a17:906:1784:b0:a59:cdf4:f938 with SMTP id a640c23a62f3a-a5a2d5cb83fmr116867566b.37.1715328800376; Fri, 10 May 2024 01:13:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715328800; cv=pass; d=google.com; s=arc-20160816; b=HQezJEJmSKvBDBvph+K/vN71sZVMZNnzt7eu4t3Y49xOYO8BB7b0ymkC9CxDByqLws zN8Z06D/jmtLlAcXHc5n9inq6pV530C1ImEvOQwreK1K032GnX43dcHDJzyuqe6X2R7O NB/N4UC4VAS/bHmLOggAfKvss1krfcVOHIqTBDY97U1eqSGtsJhgHgLHIzYD99T3hzcQ HdJHOiC7yjflPNV8ASW4rY7G2ikr2D/setXUruNq5bCR2Xv+vWPDDAZ6jI9wcBKTSQLJ 58H719clQTHZEqDVU9Mkg6aEgGI7Se0gHHh11c3N62bjjHP0rPVgOHcOMPgWyEKMCRaH 4SgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=dwzR0yLJC3eVuXXrhE7u59DIFu/UxVGjFNqrcamlF9U=; fh=oneIaUYXiGBA0rAZvkQ54UphekDlPN/auaaPO5M7DGA=; b=aVVsg580kMdj+bu23nYudMab+fwgtBZoKLWTzWDYkLvTp1ketlVj8WI530Dz28dshF 0+o9ZydqdqD+lV5Fe6DyAvN2hX6NgkVPz4McThMZDOHx3FNcXW5jdNdrptJMXLzGc8wm 4DoHi1ftLZSVoZqWcEdfdmnwy+H8ai2b001T6BOfQUrvVibuMG+hZkPPJspYVymXbvqp KZ9/NKmEZ3EVl2jPnIJQx0D0blPOZuTkIsQ1lAiXL/CEToy5eC08+SESyxLAL3LXRia7 fUQM7AzJuH2c+mz/MrUqLxbkIMeYyOrK+ibptp28e+Ta3aNehyk7CqKqStqdYLG2pe8x 7MIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-175430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175430-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba6c09si163269966b.695.2024.05.10.01.13.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 01:13:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175430-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; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-175430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175430-linux.lists.archive=gmail.com@vger.kernel.org" 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 1F10F1F22236 for ; Fri, 10 May 2024 08:13:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A25F15FA83; Fri, 10 May 2024 08:13:06 +0000 (UTC) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B156D15F40B; Fri, 10 May 2024 08:13:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715328786; cv=none; b=opIimh3+rgHSTLtLTNEcoBC1k2TdWvHXCyXQBvQPyQFFhEKfgKS5L6hHNRN9mb+RI19PoPZeKy8/5lljFfnGG1nGOseOd0GYD6oXA6n091ILjbp3NleQMyTAnPmM23rrCLr8c2YfAXhagXDFjmUIz+hMAaEjcOhHlOVdt+4GZ94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715328786; c=relaxed/simple; bh=TZfiS6lrEsk38Jd6m1IXLmMxfZu6DuG/Z0mv+clT1Q8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=b1cxLKf8ipPZKjYzFxUlkh1pMYqiXt0HAJ+o4jc8QhrvsxzLBQYleAsgcmYVKNWj5YbFS2Rb/PTr6tgmob7t8vPvcy19aUm6MtaZNv4QvuPTxVpZn87EA1asF7YilUX54TKXv5mVbNxEUeHtkEzp8yz9UZsdwzWCBnYOCx64GDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 44A8CTnmC2567408, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 44A8CTnmC2567408 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 May 2024 16:12:29 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 10 May 2024 16:12:29 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 10 May 2024 16:12:28 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Fri, 10 May 2024 16:12:28 +0800 From: Justin Lai To: Jakub Kicinski CC: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "andrew@lunn.ch" , "jiri@resnulli.us" , "horms@kernel.org" , Ping-Ke Shih , Larry Chiu Subject: RE: [PATCH net-next v18 10/13] rtase: Implement ethtool function Thread-Topic: [PATCH net-next v18 10/13] rtase: Implement ethtool function Thread-Index: AQHaoUWgPXTTB14VD0aoQIyqdMTInbGPTwiAgADR5MA= Date: Fri, 10 May 2024 08:12:28 +0000 Message-ID: References: <20240508123945.201524-1-justinlai0215@realtek.com> <20240508123945.201524-11-justinlai0215@realtek.com> <20240509204047.149e226e@kernel.org> In-Reply-To: <20240509204047.149e226e@kernel.org> Accept-Language: zh-TW, en-US Content-Language: zh-TW x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback > On Wed, 8 May 2024 20:39:42 +0800 Justin Lai wrote: > > + data[0] =3D le64_to_cpu(counters->tx_packets); > > + data[1] =3D le64_to_cpu(counters->rx_packets); > > + data[2] =3D le64_to_cpu(counters->tx_errors); > > + data[3] =3D le32_to_cpu(counters->rx_errors); > > + data[4] =3D le16_to_cpu(counters->rx_missed); > > + data[5] =3D le16_to_cpu(counters->align_errors); > > + data[6] =3D le32_to_cpu(counters->tx_one_collision); > > + data[7] =3D le32_to_cpu(counters->tx_multi_collision); > > + data[8] =3D le64_to_cpu(counters->rx_unicast); > > + data[9] =3D le64_to_cpu(counters->rx_broadcast); > > + data[10] =3D le32_to_cpu(counters->rx_multicast); > > + data[11] =3D le16_to_cpu(counters->tx_aborted); > > + data[12] =3D le16_to_cpu(counters->tx_underun); >=20 > Please limit stats you report in ethtool -S to just the stats for which p= roper > interfaces don't exist. Don't duplicate what's already reported via > rtase_get_stats64(), also take a look at what can be reported via various > *_stats members of struct ethtool_ops. OK, I will check this part and modify it.