Lines Matching full:vid
119 info.vid = rcv->vid; in prueth_switchdev_fdb_offload_notify()
139 netdev_dbg(emac->ndev, "prueth_fdb_add: MACID = %pM vid = %u flags = %u %u -- port %d\n", in prueth_switchdev_event_work()
140 fdb->addr, fdb->vid, fdb->added_by_user, in prueth_switchdev_event_work()
148 ret = icssg_fdb_add_del(emac, fdb->addr, fdb->vid, in prueth_switchdev_event_work()
156 netdev_dbg(emac->ndev, "prueth_fdb_del: MACID = %pM vid = %u flags = %u %u -- port %d\n", in prueth_switchdev_event_work()
157 fdb->addr, fdb->vid, fdb->added_by_user, in prueth_switchdev_event_work()
164 icssg_fdb_add_del(emac, fdb->addr, fdb->vid, in prueth_switchdev_event_work()
231 u8 vid, struct net_device *orig_dev) in prueth_switchdev_vlan_add() argument
246 icssg_vtbl_modify(emac, vid, port_mask, untag_mask, true); in prueth_switchdev_vlan_add()
248 netdev_dbg(emac->ndev, "VID add vid:%u port_mask:%X untag_mask %X PVID %d\n", in prueth_switchdev_vlan_add()
249 vid, port_mask, untag_mask, pvid); in prueth_switchdev_vlan_add()
254 icssg_set_pvid(emac->prueth, vid, emac->port_id); in prueth_switchdev_vlan_add()
259 static int prueth_switchdev_vlan_del(struct prueth_emac *emac, u16 vid, in prueth_switchdev_vlan_del() argument
271 icssg_vtbl_modify(emac, vid, port_mask, 0, false); in prueth_switchdev_vlan_del()
274 icssg_fdb_add_del(emac, emac->mac_addr, vid, in prueth_switchdev_vlan_del()
277 if (vid == icssg_get_pvid(emac)) in prueth_switchdev_vlan_del()
280 netdev_dbg(emac->ndev, "VID del vid:%u port_mask:%X\n", in prueth_switchdev_vlan_del()
281 vid, port_mask); in prueth_switchdev_vlan_del()
294 netdev_dbg(emac->ndev, "VID add vid:%u flags:%X\n", in prueth_switchdev_vlans_add()
295 vlan->vid, vlan->flags); in prueth_switchdev_vlans_add()
300 if (vlan->vid > 0xff) in prueth_switchdev_vlans_add()
303 return prueth_switchdev_vlan_add(emac, untag, pvid, vlan->vid, in prueth_switchdev_vlans_add()
310 if (vlan->vid > 0xff) in prueth_switchdev_vlans_del()
313 return prueth_switchdev_vlan_del(emac, vlan->vid, in prueth_switchdev_vlans_del()
332 fid_c2 = icssg_fdb_lookup(emac, mdb->addr, mdb->vid); in prueth_switchdev_mdb_add()
334 err = icssg_fdb_add_del(emac, mdb->addr, mdb->vid, fid_c2 | port_mask, true); in prueth_switchdev_mdb_add()
335 netdev_dbg(emac->ndev, "MDB add vid %u:%pM ports: %X\n", in prueth_switchdev_mdb_add()
336 mdb->vid, mdb->addr, port_mask); in prueth_switchdev_mdb_add()
355 fid_c2 = icssg_fdb_lookup(emac, mdb->addr, mdb->vid); in prueth_switchdev_mdb_del()
358 ret = icssg_fdb_add_del(emac, mdb->addr, mdb->vid, fid_c2 & ~del_mask, true); in prueth_switchdev_mdb_del()
360 ret = icssg_fdb_add_del(emac, mdb->addr, mdb->vid, 0, false); in prueth_switchdev_mdb_del()
362 netdev_dbg(emac->ndev, "MDB del vid %u:%pM ports: %X\n", in prueth_switchdev_mdb_del()
363 mdb->vid, mdb->addr, del_mask); in prueth_switchdev_mdb_del()