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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux