]> git.ipfire.org Git - people/arne_f/kernel.git/commit
net: hns3: return 0 and print warning when hit duplicate MAC
authorPeng Li <lipeng321@huawei.com>
Thu, 4 Apr 2019 08:17:51 +0000 (16:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:09 +0000 (11:54 +0200)
commit272f8c3ddd31e54d33442c8990b084b39b2383ca
tree6c7d3244078a06a00daaac7ef2679c1665ce2bba
parent5a286ced49117a29e65e47cb43fa878ade7a2a70
net: hns3: return 0 and print warning when hit duplicate MAC

[ Upstream commit 72110b567479f0282489a9b3747e76d8c67d75f5 ]

When set 2 same MAC to different function of one port, IMP
will return error as the later one may modify the origin one.
This will cause bond fail for 2 VFs of one port.

Driver just print warning and return 0 with this patch, so
if set same MAC address, it will return 0 but do not really
configure HW.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c