]> git.baikalelectronics.ru Git - kernel.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)
commitcdd6fcf17a2bbe085226922035099bd55f47787b
treed416477091f550e1b6c51e8d22d8dbaae202661e
parent322ca8fd6bf98a0a98405d12fb897b84338f98b5
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: 0eda0d74aa27 ("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