net/hns3: fix requested FC mode rollback
authorHuisong Li <lihuisong@huawei.com>
Sat, 15 May 2021 00:52:34 +0000 (08:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 18 May 2021 10:30:14 +0000 (12:30 +0200)
commit19603f63fbb77f6ceddce9d36d20a6f5d7cdd4cf
treeb58451aeb4debf4deef38c7e36ac9b24a2f4e713
parent16c08f07ab673655db5fcae2043e2cb1f423c5b2
net/hns3: fix requested FC mode rollback

Currently, the "requested_fc_mode" lacks rollback when enabling link
FC or PFC fails.
For example, this may result an incorrect FC mode after a reset.

Fixes: d4fdb71a0e7b ("net/hns3: fix flow control mode")
Fixes: 62e3ccc2b94c ("net/hns3: support flow control")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_dcb.c
drivers/net/hns3/hns3_ethdev.c