Re: [PATCH net 3/4] net: bcmgenet: reset the Rx discard count with the ring
From: Florian Fainelli
Date: Wed Nov 18 2026 - 15:01:57 EST
On 11/18/26 11:55, Nicolai Buchwitz wrote:
Ring init clears the hardware discard counter but not
ring->old_discards. Discards after an ifdown and ifup or a resume are
then missing from rx_missed. On a CM4, after an ifdown and ifup, 3666
discards showed up as 0 in rx_missed.
Reset old_discards together with the ring.
Fixes: d26ea6cc48da ("net: bcmgenet: collect Rx discarded packet count")
Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian