Re: [PATCH v4 1/2] tg3: Move the [rt]x_dropped counters to tg3_napi

From: Jakub Kicinski
Date: Mon Nov 13 2023 - 17:38:54 EST


On Mon, 13 Nov 2023 10:23:49 -0800 alexey.pakhunov@xxxxxxxxxx wrote:
> This change moves [rt]x_dropped counters to tg3_napi so that they can be
> updated by a single writer, race-free.

Michael, do you have a preference on the using u64_stats_inc() ?
Since we're only doing inc here the conversion should be pretty
trivial. The semantics of local64 are a bit murky but looks like
other drivers think that it's okay to use inc without
u64_stats_update_begin() / end().