[PATCH net-next v10 2/5] net: spacemit: Add K1 Ethernet MAC
Vivian Wang
wangruikang at iscas.ac.cn
Mon Sep 8 08:25:53 PDT 2025
On 9/8/25 20:34, Vivian Wang wrote:
> [...]
> +static u64 emac_get_stat_tx_dropped(struct emac_priv *priv)
> +{
> + u64 result;
Well, this should be result = 0. That was careless on my part. Will fix
in v11.
I need to start using this clang thing...
Vivian "dramforever" Wang
> + int cpu;
> +
> + for_each_possible_cpu(cpu) {
> + result += READ_ONCE(per_cpu(*priv->stat_tx_dropped, cpu));
> + }
> +
> + return result;
> +}
More information about the linux-riscv
mailing list