From: Yuval Mintz Date: Wed, 27 Jul 2016 11:45:22 +0000 (+0300) Subject: qede: Reset statistics on explicit down X-Git-Tag: v4.8-rc1~51^2~32^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f7a144fc553055ecc850a82cf7fc74b6b636d6e;p=karo-tx-linux.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index c9ebb59a5819..e4bd02e46e57 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -3271,6 +3271,7 @@ static int qede_start_queues(struct qede_dev *edev, bool clear_stats) start.vport_id = 0; start.drop_ttl0 = true; start.remove_inner_vlan = vlan_removal_en; + start.clear_stats = clear_stats; rc = edev->ops->vport_start(cdev, &start);