igb: only process global stats in igb_update_stats
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 27 Oct 2009 23:48:12 +0000 (23:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2009 10:25:43 +0000 (03:25 -0700)
commit3f9c01648146a256d8238292ac9c63fed7e00473
treea9c313ab74f20c4dc3705a502aa1f73baac48dc7
parenta6b623e0e5787ba5ffd2a3c4448ff6d1eaa904a9
igb: only process global stats in igb_update_stats

This patch moves the update of adapter->net_stats.rx/tx values out of the
interrupt routine and into igb_update_stats by just adding together the
tx/rx byte/packet counts for the rings.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c