net/hns3: fix DCB reconfiguration
authorHuisong Li <lihuisong@huawei.com>
Sat, 15 May 2021 00:52:37 +0000 (08:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 18 May 2021 10:30:14 +0000 (12:30 +0200)
commitb67bdfc8f6630934f3005ad531225c7203304661
treeea239eca93cb8c4f19e1529e724bc1984eed3726
parent0b92fa1eb0648c489447853073d47e56b7717e74
net/hns3: fix DCB reconfiguration

Whether the enable bit of the pfc ("pfc_en") is changed or not is one of
the conditions for reconfiguring the DCB. Currently, pfc_en is not
rolled back when DCB configuration fails. This patch fixes it.

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