diff options
author | Mintz Yuval <yuvalmin@broadcom.com> | 2012-02-15 02:10:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-15 20:30:48 (GMT) |
commit | 1355b704b9ba44182a97c90b4480d79f0de8f040 (patch) | |
tree | 06250df554f95fa48f7480ef34128d60771a6c03 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |
parent | eb40d89276705a35c9a2e05793ae63411ae357eb (diff) | |
download | linux-fsl-qoriq-1355b704b9ba44182a97c90b4480d79f0de8f040.tar.xz |
bnx2x: consistent statistics after internal driver reload
Currently bnx2x statistics are reset by inner driver reload, e.g. by MTU
change. This patch fixes this issue - from now on statistics should only
be reset upon device closure.
Thanks to Michal Schmidt <mschmidt@redhat.com> for his initial patch
regarding this issue.
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index ff19c3c..e0d5f15 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -10235,6 +10235,8 @@ static int bnx2x_open(struct net_device *dev) int other_engine = BP_PATH(bp) ? 0 : 1; bool other_load_status, load_status; + bp->stats_init = true; + netif_carrier_off(dev); bnx2x_set_power_state(bp, PCI_D0); |