Thread (16 messages) 16 messages, 3 authors, 2025-09-09

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

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-09-05 23:59:10
Also in: linux-devicetree, linux-riscv, lkml, spacemit

On Sat, 6 Sep 2025 00:35:37 +0800 Vivian Wang wrote:
quoted
quoted
On a closer look, these counters in ndev->stats seems to be redundant
with the hardware-tracked statistics, so maybe I should just not bother
with updating ndev->stats. Does that make sense?  
For rx/tx packets/bytes I think that makes sense.
But what about rx/tx drops?  
Right... but tstats doesn't have *_dropped. It seems that tx_dropped and
rx_dropped are considered "slow path" for real devices. It makes sense
to me that those should be very rare.
Pretty sure Simon meant the per-cpu netdev stats in general.
There are three types of them, if you need drops I think you
probably want dstats. Take a look.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help