Lines Matching defs:vlan

3530 	ivf->vlan = vport->port_base_vlan_cfg.vlan_info.vlan_tag;
5133 * vlan filter is always bypassed. So broadcast promisc should be
6028 dev_err(&hdev->pdev->dev, "vlan-etype is not supported!\n");
7614 "read mac vlan switch parameter fail, ret = %d\n", ret);
7626 "set mac vlan switch parameter fail, ret = %d\n", ret);
8604 * is not allowed in the mac vlan table.
8731 dev_err(&hdev->pdev->dev, "mc mac vlan table is full\n");
9445 "failed to set vport%u port vlan filter bypass state, ret = %d.\n",
9458 /* read current vlan filter parameter */
9466 dev_err(&hdev->pdev->dev, "failed to get vport%u vlan filter config, ret = %d.\n",
9478 dev_err(&hdev->pdev->dev, "failed to set vport%u vlan filter, ret = %d.\n",
9519 struct hclge_vport_vlan_cfg *vlan, *tmp;
9536 /* compatible with former device, always enable vlan filter */
9540 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node)
9541 if (vlan->vlan_id != 0)
9584 bool is_kill, u16 vlan,
9606 req0->vlan_id = cpu_to_le16(vlan);
9617 "Send vf vlan command fail, ret =%d.\n",
9640 "vf vlan table is full, vf vlan filter is disabled\n");
9645 "Add vf vlan filter fail, ret =%u.\n",
9652 /* vf vlan filter is disabled when vf vlan table is full,
9653 * then new vlan id will not be added into vf vlan table.
9661 "Kill vf vlan filter fail, ret =%u.\n",
9669 bool is_kill, u16 vlan)
9675 /* if vf vlan table is full, firmware will close vf vlan filter, it
9676 * is unable and unnecessary to add new vlan id to vf vlan filter.
9677 * If spoof check is enable, and vf vlan is full, it shouldn't add
9678 * new vlan, because tx packets with these vlan id will be dropped.
9681 if (vport->vf_info.spoofchk && vlan) {
9683 "Can't add vlan due to spoof check is on and vf vlan table is full\n");
9689 ret = hclge_set_vf_vlan_filter_cmd(hdev, vfid, is_kill, vlan, desc);
9721 "port vlan command, send fail, ret =%d.\n", ret);
9728 /* vlan 0 may be added twice when 8021q module is enabled */
9735 "Add port vlan failed, vport %u is already in vlan %u\n",
9743 "Delete port vlan failed, vport %u is not in vlan %u\n",
9767 "Set %u vport vlan filter config fail, ret =%d.\n",
9978 /* for revision 0x21, vf vlan filter is per function */
10052 struct hclge_vport_vlan_cfg *vlan, *tmp;
10057 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
10058 if (vlan->vlan_id == vlan_id) {
10064 vlan = kzalloc(sizeof(*vlan), GFP_KERNEL);
10065 if (!vlan) {
10070 vlan->hd_tbl_status = writen_to_tbl;
10071 vlan->vlan_id = vlan_id;
10073 list_add_tail(&vlan->node, &vport->vlan_list);
10079 struct hclge_vport_vlan_cfg *vlan, *tmp;
10085 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
10086 if (!vlan->hd_tbl_status) {
10089 vlan->vlan_id, false);
10092 "restore vport vlan list failed, ret=%d\n",
10099 vlan->hd_tbl_status = true;
10110 struct hclge_vport_vlan_cfg *vlan, *tmp;
10113 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
10114 if (vlan->vlan_id == vlan_id) {
10115 if (is_write_tbl && vlan->hd_tbl_status)
10122 list_del(&vlan->node);
10123 kfree(vlan);
10131 struct hclge_vport_vlan_cfg *vlan, *tmp;
10136 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
10137 if (vlan->hd_tbl_status)
10141 vlan->vlan_id,
10144 vlan->hd_tbl_status = false;
10146 list_del(&vlan->node);
10147 kfree(vlan);
10156 struct hclge_vport_vlan_cfg *vlan, *tmp;
10164 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
10165 list_del(&vlan->node);
10166 kfree(vlan);
10183 /* PF should restore all vfs port base vlan */
10206 struct hclge_vport_vlan_cfg *vlan, *tmp;
10213 list_for_each_entry_safe(vlan, tmp, &vport->vlan_list, node) {
10216 vlan->vlan_id, false);
10219 vlan->hd_tbl_status = true;
10373 "failed to clear vport%u port base vlan %u, ret = %d.\n",
10422 u16 vlan, u8 qos)
10425 if (!vlan && !qos)
10431 if (!vlan && !qos)
10434 if (vport->port_base_vlan_cfg.vlan_info.vlan_tag == vlan &&
10442 u16 vlan, u8 qos, __be16 proto)
10459 if (vlan > VLAN_N_VID - 1 || qos > 7)
10466 vlan, qos);
10470 vlan_info.vlan_tag = vlan;
10477 "failed to update port base vlan for vf %d, ret = %d\n",
10508 /* clear port base vlan for all vf */
10518 "failed to clear vf vlan for vf%d, ret = %d\n",
10532 * handle mailbox. Just record the vlan id, and remove it after
10546 /* when port base vlan enabled, we use port base vlan as the vlan
10547 * filter entry. In this case, we don't update vlan filter table
10548 * when user add new vlan or remove exist vlan, just update the vport
10549 * vlan list. The vlan id in vlan list will be writen in vlan filter
10550 * table until port base vlan disabled
10568 /* when remove hw vlan filter failed, record the vlan id,
10598 "failed to sync vlan filter state for vport%u, ret = %d\n",
10675 /* HW supprt 2 layer vlan */
11697 /* HW supprt 2 layer vlan */
11947 "Set vf %d vlan spoof check %s failed, ret=%d\n",
11973 "vf %d vlan table is full, enable spoof check may cause its packet send fail\n",
12711 "failed to clean vf%d port base vlan, ret = %d\n",