]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:20:38 +0000 (10:20 -0700)
commita460c712be769befd0f9431d14c3c482841ccdf9
tree294f4a75d84347e2ca952180450983305f92b243
parente5330d9defbd34f537eff421d680ce4596dab22a
net: hns3: return 0 and print warning when hit duplicate MAC

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c