qede: Reset statistics on explicit down
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 27 Jul 2016 11:45:22 +0000 (14:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Jul 2016 03:34:03 +0000 (20:34 -0700)
commit7f7a144fc553055ecc850a82cf7fc74b6b636d6e
tree60a44c8129c9bdbe713ff0f84c834e6e246d7c57
parentb21290b77f78f62e3f41ef876bfadacd65c83980
qede: Reset statistics on explicit down

Adding the necessary logic to prevet statistics reset
on inner-reload introduced a bug, and now statistics
are reset only when re-probing the driver.

Fixes: a0d26d5a4fc8e ("qed*: Don't reset statistics on inner reload")
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c