Lines Matching full:vlan
40 * rtl8366_obtain_mc() - retrieve or allocate a VLAN member configuration
42 * @vid: the VLAN ID to look up or allocate
58 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
71 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
80 dev_err(smi->dev, "error looking for 4K VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
91 dev_err(smi->dev, "unable to set/update VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
122 dev_err(smi->dev, "unable to set/update VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
132 dev_err(smi->dev, "all VLAN member configurations are in use\n"); in rtl8366_obtain_mc()
148 "setting VLAN%d 4k members: 0x%02x, untagged: 0x%02x\n", in rtl8366_set_vlan()
164 "resulting VLAN%d 4k members: 0x%02x, untagged: 0x%02x\n", in rtl8366_set_vlan()
181 dev_err(smi->dev, "failed to commit changes to VLAN MC index %d for VID %d\n", in rtl8366_set_vlan()
185 "resulting VLAN%d MC members: 0x%02x, untagged: 0x%02x\n", in rtl8366_set_vlan()
226 /* To enable 4k VLAN, ordinary VLAN must be enabled first, in rtl8366_enable_vlan4k()
227 * but if we disable 4k VLAN it is fine to leave ordinary in rtl8366_enable_vlan4k()
228 * VLAN enabled. in rtl8366_enable_vlan4k()
231 /* Make sure VLAN is ON */ in rtl8366_enable_vlan4k()
258 /* If we turn VLAN off, make sure that we turn off in rtl8366_enable_vlan()
259 * 4k VLAN as well, if that happened to be on. in rtl8366_enable_vlan()
279 /* Clear the 16 VLAN member configurations */ in rtl8366_reset_vlan()
305 * it with the VLAN (port+1) in rtl8366_init_vlan()
312 * VLAN. in rtl8366_init_vlan()
321 /* For each port, set the port as member of VLAN (port+1) in rtl8366_init_vlan()
323 * member of VLAN 6 and so are ALL the other ports as well. in rtl8366_init_vlan()
326 dev_info(smi->dev, "VLAN%d port mask for port %d, %08x\n", in rtl8366_init_vlan()
332 dev_info(smi->dev, "VLAN%d port %d, PVID set to %d\n", in rtl8366_init_vlan()
350 /* Use VLAN nr port + 1 since VLAN0 is not valid */ in rtl8366_vlan_filtering()
383 const struct switchdev_obj_port_vlan *vlan) in rtl8366_vlan_prepare() argument
389 for (vid = vlan->vid_begin; vid < vlan->vid_end; vid++) in rtl8366_vlan_prepare()
394 vlan->vid_begin, vlan->vid_end); in rtl8366_vlan_prepare()
396 /* Enable VLAN in the hardware in rtl8366_vlan_prepare()
409 const struct switchdev_obj_port_vlan *vlan) in rtl8366_vlan_add() argument
411 bool untagged = !!(vlan->flags & BRIDGE_VLAN_INFO_UNTAGGED); in rtl8366_vlan_add()
412 bool pvid = !!(vlan->flags & BRIDGE_VLAN_INFO_PVID); in rtl8366_vlan_add()
419 for (vid = vlan->vid_begin; vid < vlan->vid_end; vid++) in rtl8366_vlan_add()
423 dev_info(smi->dev, "add VLAN %d on port %d, %s, %s\n", in rtl8366_vlan_add()
424 vlan->vid_begin, in rtl8366_vlan_add()
432 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in rtl8366_vlan_add()
441 "failed to set up VLAN %04x", in rtl8366_vlan_add()
450 "failed to set PVID on port %d to VLAN %04x", in rtl8366_vlan_add()
454 dev_dbg(smi->dev, "VLAN add: added VLAN %d with PVID on port %d\n", in rtl8366_vlan_add()
461 const struct switchdev_obj_port_vlan *vlan) in rtl8366_vlan_del() argument
467 dev_info(smi->dev, "del VLAN on port %d\n", port); in rtl8366_vlan_del()
469 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in rtl8366_vlan_del()
472 dev_info(smi->dev, "del VLAN %04x\n", vid); in rtl8366_vlan_del()
482 /* Remove this port from the VLAN */ in rtl8366_vlan_del()
486 * If no ports are members of this VLAN in rtl8366_vlan_del()
498 "failed to remove VLAN %04x\n", in rtl8366_vlan_del()