]> 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)
commit35bcdf9b5a9b1f877ba63187123a1274cf40deb8
treed416477091f550e1b6c51e8d22d8dbaae202661e
parent5649645fc081ebee3c95ac9c19185839fc6f144e
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: f5bf9f59ecf3 ("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