]> 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)
commit7ae825365c6e9e9c935cda96517cc65ae5bd161e
treedd4139fd95cc0bac543129a92aa20043b6516ebc
parent13c013ff9f0dc040f05ae0e30d2ac6831009d431
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