net/ixgbe: fix statistics in flow control mode
authorGuinan Sun <guinanx.sun@intel.com>
Tue, 12 May 2020 08:13:06 +0000 (08:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:56 +0000 (20:35 +0200)
commit861ca8b1e97c68727cbafbb859cc6c2ff017801e
treef5f7a7600995a9f764d47a6c388cd25ce3ee2983
parent4240b11e7b32e5b5ca23eb81fbcd6ac5c967248c
net/ixgbe: fix statistics in flow control mode

The register autoneg can't be updated synchronously with flow control
mode setting in the state of port start, so NIC statistics error occurs.
AUTO_NEG Advt register should be updated by ixgbe_setup_fc() when
enabling flow control.
The patch fixes the issue.

Fixes: a524f550da6e ("net/ixgbe: fix flow control mode setting")
Cc: stable@dpdk.org
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c