From: Guinan Sun Date: Sat, 23 May 2020 05:22:38 +0000 (+0000) Subject: net/ixgbe: fix MAC control frame forward X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7b053b86d889acd7c3a02909774da08d3d90a4b0;p=dpdk.git net/ixgbe: fix MAC control frame forward 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 Reviewed-by: Wei Zhao Acked-by: Qi Zhang --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 095f1bde57..74c3c6b5db 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -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; }