net/hns3: disable PFC if not configured
authorHuisong Li <lihuisong@huawei.com>
Sat, 17 Jul 2021 01:04:19 +0000 (09:04 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jul 2021 13:10:01 +0000 (15:10 +0200)
commitdd74211747948b8a6863299de1fc9710b8939b45
treee24036c8402c7dd0f38c4a0d2f85c222a43eed60
parent1cc574c41a8e4a901b822aad9c85a07e98a7b661
net/hns3: disable PFC if not configured

If "dcb_capability_en" in "data->dev_conf" delivered from the dev_configure
does not have the ETH_DCB_PFC_SUPPORT flag, the user wants to disable PFC,
and only enable ETS. Therefore, this patch supports the function of
disabling PFC by the field. In addition, this patch updates
"current_fc_status" of the driver based on the flow control mode requested
by user so as to enable the flow control mode in multi-TC scenarios.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_dcb.c