[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201017231551.GX456889@lunn.ch>
Date: Sun, 18 Oct 2020 01:15:51 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, f.fainelli@...il.com,
vivien.didelot@...il.com, kuba@...nel.org,
Christian Eggers <ceggers@...i.de>,
Kurt Kanzenbach <kurt@...utronix.de>
Subject: Re: [RFC PATCH 01/13] net: dsa: add plumbing for custom netdev
statistics
> +/* Driver statistics, other than those in struct rtnl_link_stats64.
> + * These are collected per-CPU and aggregated by ethtool.
> + */
> +struct dsa_slave_stats {
> + __u64 tx_reallocs;
> + struct u64_stats_sync syncp;
> +} __aligned(1 * sizeof(u64));
The convention seems to be to use a prefix of pcpu_,
e.g. pcpu_sw_netstats, pcpu_lstats.
Also, why __u64? Neither pcpu_sw_netstats nor pcpu_lstats use __u64.
Andrew
Powered by blists - more mailing lists