ixgbe: reset hardware stats on initialization
authorMichael Qiu <michael.qiu@intel.com>
Thu, 11 Jun 2015 07:29:52 +0000 (15:29 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 15:51:20 +0000 (17:51 +0200)
commitb911281be641ff3822bf9983a7cd68f3bbaa291b
tree10c69bf51200d54edc11e84eebeab5db7ce5ac68
parent359e17bf081f91a7ddca9c6d91fc82d933817ab7
ixgbe: reset hardware stats on initialization

When initialize the hardware, the stat should be reset.
Otherwise when detach then attach port, the stat will not
be re-init to zero.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c