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: a524f550da
("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>
This commit is contained in:
parent
4240b11e7b
commit
861ca8b1e9
@ -2543,6 +2543,8 @@ ixgbe_flow_ctrl_enable(struct rte_eth_dev *dev, struct ixgbe_hw *hw)
|
||||
int err;
|
||||
uint32_t mflcn;
|
||||
|
||||
ixgbe_setup_fc(hw);
|
||||
|
||||
err = ixgbe_fc_enable(hw);
|
||||
|
||||
/* Not negotiated is not an error case */
|
||||
|
Loading…
Reference in New Issue
Block a user