|
|
@@ -4300,8 +4300,11 @@ int hclge_add_uc_addr_common(struct hclge_vport *vport,
|
|
|
return hclge_add_mac_vlan_tbl(vport, &req, NULL);
|
|
|
|
|
|
/* check if we just hit the duplicate */
|
|
|
- if (!ret)
|
|
|
- ret = -EINVAL;
|
|
|
+ if (!ret) {
|
|
|
+ dev_warn(&hdev->pdev->dev, "VF %d mac(%pM) exists\n",
|
|
|
+ vport->vport_id, addr);
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
|
|
|
dev_err(&hdev->pdev->dev,
|
|
|
"PF failed to add unicast entry(%pM) in the MAC table\n",
|