Re: [PATCH net-next v2 5/7] netdevsim: report stats by default, like a real device

Jakub Kicinski
2024-04-04T13:52:02Z

On Thu, 4 Apr 2024 12:40:04 +0200 Petr Machata wrote:
> > + stats->packets = rtstats.rx_packets - !!rtstats.rx_packets;
>
> This is just to make sure that per-queue stats are lower than the
> overall rtstats I presume?

Yes, to fake some "non-queue" stats.