]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: add error handling in hclge_ieee_setets
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 26 Jan 2019 16:49:12 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:33:30 +0000 (09:33 -0800)
commit1821dce9ae6c6d70e9e9ea93638855e7a27797ca
treed416477091f550e1b6c51e8d22d8dbaae202661e
parentac864c2346d087dd3739435af1b8d36be5f60c75
net: hns3: add error handling in hclge_ieee_setets

Currently hclge_ieee_setets returns error directly when there is
error, which may cause netdev not up problem.

This patch adds some error handling when setting ETS configuration
fails.

Fixes: cacde272dd00 ("net: hns3: Add hclge_dcb module for the support of DCB feature")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c