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)
commit7b053b86d889acd7c3a02909774da08d3d90a4b0
tree3c50e57ab57a5f4c1f4d9cf97f60c2abb2f74d08
parent11b58ac709690cb4086a0a01f979b3d3f8ea7d21
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 <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