net/ixgbe: fix MAC control frame forward
authorGuinan Sun <guinanx.sun@intel.com>
Sat, 23 May 2020 05:22:38 +0000 (05:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 11:54:54 +0000 (13:54 +0200)
mac_ctrl_frame_fwd shouldn't be cleared when port stop,
otherwise it will be inconsistent with the actual status.
This 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>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c

index 095f1bd..74c3c6b 100644 (file)
@@ -2926,8 +2926,6 @@ ixgbe_dev_stop(struct rte_eth_dev *dev)
 
        adapter->rss_reta_updated = 0;
 
-       adapter->mac_ctrl_frame_fwd = 0;
-
        hw->adapter_stopped = true;
 }