qlcnic: Fix update of ethtool stats.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Mon, 4 Aug 2014 15:51:16 +0000 (11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 23:23:26 +0000 (16:23 -0700)
o Aggregating tx stats in adapter variable was resulting in
  an increase in stats even after no traffic was run and
  user runs ifconfig/ethtool command.
o qlcnic_update_stats used to accumulate stats in adapter
  struct at each function call, instead accumulate tx stats
  in local variable and then assign it to adapter structure.

Reported-by: Holger Kiehl <holger.kiehl@dwd.de>
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found