lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9F4C7D19E8361D4C94921B95BE08B81BA08AE5@zin33exm22.fsl.freescale.net>
Date:	Thu, 10 Dec 2009 13:13:02 +0530
From:	"Kumar Gopalpet-B05799" <B05799@...escale.com>
To:	"Eric Dumazet" <eric.dumazet@...il.com>
Cc:	<netdev@...r.kernel.org>, <avorontsov@...mvista.com>,
	<davem@...emloft.net>
Subject: RE: [RFC] gianfar: Fix stats support

 
>Fine by me, but if this patch is for linux-2.6.33, you can use 
>dev_txq_stats_fold() helper in your gfar_get_stats()
>
>dev_txq_stats_fold(dev, &dev->stats);
>return &dev->stats;
>

Eric, the problem in using dev_txq_stats_fold() will be that
txq->tx_dropped will not be updated. tx_dropped counter is updated on a
device level in the gfar_error( ) interrupt context (here we do not know
the txq index).
So, if we use dev_txq_stats_fold(), we will incorrectly give the
tx_dropped stats.

--

Thanks
Sandeep
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ