net/ixgbe: fix flow control mode setting
authorGuinan Sun <guinanx.sun@intel.com>
Tue, 18 Feb 2020 03:39:31 +0000 (03:39 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Feb 2020 12:51:06 +0000 (13:51 +0100)
commita524f550da6e6c7a308ce7c2f4b6c3be60b5cbfa
treeef797afa8922e6f991389090e63b905f5458e448
parentca9ae7209173b67bcb260f6007ab7a72e4457c4c
net/ixgbe: fix flow control mode setting

When the port restarts, the flow ctrl register will be reset,
we need to make sure it can be configured the same as previous setting,
otherwise a register read error would occur. This patch fixes this
issue.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Tested-by: Tomasz Konieczny <tomaszx.konieczny@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.h