bnx2x: fix stats copying logic
authorYuval Mintz <yuvalmin@broadcom.com>
Tue, 11 Sep 2012 04:34:09 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2012 20:37:51 +0000 (16:37 -0400)
commit217aeb896a4a9f00006ce4b193c216f739234296
treedd4139fd95cc0bac543129a92aa20043b6516ebc
parentbef05406ac0ea6f468e1e25e9934f3011ea9259b
bnx2x: fix stats copying logic

FW needs the driver statistics for management. Current logic is broken
in that the function that gathers the port statistics does not copy
its own statistics to a place where the FW can use it.
This patch causes every function that can pass statistics to the FW to
do so.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c