Thread (10 messages) read the whole thread 10 messages, 3 authors, 2025-09-11

Re: [PATCH net-next v10 2/5] net: spacemit: Add K1 Ethernet MAC

From: Vivian Wang <hidden>
Date: 2025-09-08 15:26:56
Also in: linux-devicetree, linux-riscv, lkml, spacemit

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;
+}
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help