]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9553e8b01ea232a46f258c606047fc4986c92a7
treedd4139fd95cc0bac543129a92aa20043b6516ebc
parent15d202324d2ed943efb68463e1519e87fb63742b
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