]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: fix pause configure fail problem
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 25 Apr 2019 12:42:52 +0000 (20:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:21 +0000 (06:43 -0700)
commitf5fc42d952c6ef294c967c51e20b207b479ad23d
treebb7e26b6a9196f4ddbed9a7c1547dcdd97cbd84f
parentae9505c0959113e153e12fd451e93772eca3afa8
net: hns3: fix pause configure fail problem

[ Upstream commit fba2efdae8b4f998f66a2ff4c9f0575e1c4bbc40 ]

When configure pause, current implementation returns directly
after setup PFC without setup BP, which is not sufficient.

So this patch fixes it, only return while setting PFC failed.

Fixes: 44e59e375bf7 ("net: hns3: do not return GE PFC setting err when initializing")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c