net: hns: Fix WARNING when hns modules installed
authorJun Xiao <xiaojun2@hisilicon.com>
Mon, 22 Apr 2019 16:48:57 +0000 (00:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:59:00 +0000 (09:59 +0200)
commite875a409594b8e3e0c3f69182f7a0ece5aa3c164
treebd4cac451301b772795b79319fb6e7bf5015908f
parent7ce836e8a963fb1a2dc24b49cfe0aba6327b61bf
net: hns: Fix WARNING when hns modules installed

Commit dfdf26babc98 upstream

this patch need merge to 4.19.y stable kernel

Fix Conflict:already fixed the confilct dfdf26babc98 with Yonglong Liu

stable candidate:user cannot connect to the internet via hns dev
by default setting without this patch

we have already verified this patch on kunpeng916 platform,
and it works well.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Jun Xiao <xiaojun2@hisilicon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns/hns_enet.c