Skip to content

Commit d0c31df

Browse files
IronShendavem330
authored andcommitted
net: hns3: remove VF VLAN filter entry inexistent warning print
For VF VLAN filter is disabled when VF VLAN table is full, then the new VLAN ID won't be added into VF VLAN table, it will always print fail log when remove these VLAN IDs. If user has added too many VLANs, it will cause massive verbose print logs. Signed-off-by: Jian Shen <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7786a99 commit d0c31df

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7112,12 +7112,13 @@ static int hclge_set_vf_vlan_common(struct hclge_dev *hdev, u16 vfid,
71127112
if (!req0->resp_code)
71137113
return 0;
71147114

7115-
if (req0->resp_code == HCLGE_VF_VLAN_DEL_NO_FOUND) {
7116-
dev_warn(&hdev->pdev->dev,
7117-
"vlan %d filter is not in vf vlan table\n",
7118-
vlan);
7115+
/* vf vlan filter is disabled when vf vlan table is full,
7116+
* then new vlan id will not be added into vf vlan table.
7117+
* Just return 0 without warning, avoid massive verbose
7118+
* print logs when unload.
7119+
*/
7120+
if (req0->resp_code == HCLGE_VF_VLAN_DEL_NO_FOUND)
71197121
return 0;
7120-
}
71217122

71227123
dev_err(&hdev->pdev->dev,
71237124
"Kill vf vlan filter fail, ret =%d.\n",

0 commit comments

Comments
 (0)