]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
be2net: cleanup rx/tx rate calculations
authorSathya Perla <sathyap@serverengines.com>
Tue, 24 Mar 2009 23:40:13 +0000 (16:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2009 23:40:13 +0000 (16:40 -0700)
commit4097f663cbe9e58de7ebed222f8af33267f297a8
tree9cc5c70cba6e95405dbc1ae11a1bd79f96ee110c
parent38938bfe3489394e2eed5e40c9bb8f66a2ce1405
be2net: cleanup rx/tx rate calculations

Hi, Pls accept this patch to cleanup rx/tx rate calculations as follows:
- check for jiffies wraparound
- remove typecast of a denominator
- do rate calculation only in workqueue context periodically

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_main.c