Lines Matching refs:bridge_device

59 	struct mlxsw_sp_bridge_device *bridge_device;  member
80 int (*port_join)(struct mlxsw_sp_bridge_device *bridge_device,
84 void (*port_leave)(struct mlxsw_sp_bridge_device *bridge_device,
87 int (*vxlan_join)(struct mlxsw_sp_bridge_device *bridge_device,
91 (*fid_get)(struct mlxsw_sp_bridge_device *bridge_device,
94 (*fid_lookup)(struct mlxsw_sp_bridge_device *bridge_device,
96 u16 (*fid_vid)(struct mlxsw_sp_bridge_device *bridge_device,
112 *bridge_device);
123 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_device_find() local
125 list_for_each_entry(bridge_device, &bridge->bridges_list, list) in mlxsw_sp_bridge_device_find()
126 if (bridge_device->dev == br_dev) in mlxsw_sp_bridge_device_find()
127 return bridge_device; in mlxsw_sp_bridge_device_find()
161 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_device_create() local
169 bridge_device = kzalloc(sizeof(*bridge_device), GFP_KERNEL); in mlxsw_sp_bridge_device_create()
170 if (!bridge_device) in mlxsw_sp_bridge_device_create()
173 bridge_device->dev = br_dev; in mlxsw_sp_bridge_device_create()
174 bridge_device->vlan_enabled = vlan_enabled; in mlxsw_sp_bridge_device_create()
175 bridge_device->multicast_enabled = br_multicast_enabled(br_dev); in mlxsw_sp_bridge_device_create()
176 bridge_device->mrouter = br_multicast_router(br_dev); in mlxsw_sp_bridge_device_create()
177 INIT_LIST_HEAD(&bridge_device->ports_list); in mlxsw_sp_bridge_device_create()
180 bridge_device->ops = bridge->bridge_8021q_ops; in mlxsw_sp_bridge_device_create()
182 bridge_device->ops = bridge->bridge_8021d_ops; in mlxsw_sp_bridge_device_create()
184 INIT_LIST_HEAD(&bridge_device->mids_list); in mlxsw_sp_bridge_device_create()
185 list_add(&bridge_device->list, &bridge->bridges_list); in mlxsw_sp_bridge_device_create()
187 return bridge_device; in mlxsw_sp_bridge_device_create()
192 struct mlxsw_sp_bridge_device *bridge_device) in mlxsw_sp_bridge_device_destroy() argument
195 bridge_device->dev); in mlxsw_sp_bridge_device_destroy()
196 list_del(&bridge_device->list); in mlxsw_sp_bridge_device_destroy()
197 if (bridge_device->vlan_enabled) in mlxsw_sp_bridge_device_destroy()
199 WARN_ON(!list_empty(&bridge_device->ports_list)); in mlxsw_sp_bridge_device_destroy()
200 WARN_ON(!list_empty(&bridge_device->mids_list)); in mlxsw_sp_bridge_device_destroy()
201 kfree(bridge_device); in mlxsw_sp_bridge_device_destroy()
208 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_device_get() local
210 bridge_device = mlxsw_sp_bridge_device_find(bridge, br_dev); in mlxsw_sp_bridge_device_get()
211 if (bridge_device) in mlxsw_sp_bridge_device_get()
212 return bridge_device; in mlxsw_sp_bridge_device_get()
219 struct mlxsw_sp_bridge_device *bridge_device) in mlxsw_sp_bridge_device_put() argument
221 if (list_empty(&bridge_device->ports_list)) in mlxsw_sp_bridge_device_put()
222 mlxsw_sp_bridge_device_destroy(bridge, bridge_device); in mlxsw_sp_bridge_device_put()
226 __mlxsw_sp_bridge_port_find(const struct mlxsw_sp_bridge_device *bridge_device, in __mlxsw_sp_bridge_port_find() argument
231 list_for_each_entry(bridge_port, &bridge_device->ports_list, list) { in __mlxsw_sp_bridge_port_find()
244 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_port_find() local
249 bridge_device = mlxsw_sp_bridge_device_find(bridge, br_dev); in mlxsw_sp_bridge_port_find()
250 if (!bridge_device) in mlxsw_sp_bridge_port_find()
253 return __mlxsw_sp_bridge_port_find(bridge_device, brport_dev); in mlxsw_sp_bridge_port_find()
257 mlxsw_sp_bridge_port_create(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_port_create() argument
274 bridge_port->bridge_device = bridge_device; in mlxsw_sp_bridge_port_create()
279 list_add(&bridge_port->list, &bridge_device->ports_list); in mlxsw_sp_bridge_port_create()
298 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_port_get() local
308 bridge_device = mlxsw_sp_bridge_device_get(bridge, br_dev); in mlxsw_sp_bridge_port_get()
309 if (IS_ERR(bridge_device)) in mlxsw_sp_bridge_port_get()
310 return ERR_CAST(bridge_device); in mlxsw_sp_bridge_port_get()
312 bridge_port = mlxsw_sp_bridge_port_create(bridge_device, brport_dev); in mlxsw_sp_bridge_port_get()
321 mlxsw_sp_bridge_device_put(bridge, bridge_device); in mlxsw_sp_bridge_port_get()
328 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_port_put() local
332 bridge_device = bridge_port->bridge_device; in mlxsw_sp_bridge_port_put()
334 mlxsw_sp_bridge_device_put(bridge, bridge_device); in mlxsw_sp_bridge_port_put()
340 bridge_device, in mlxsw_sp_port_vlan_find_by_bridge()
349 if (mlxsw_sp_port_vlan->bridge_port->bridge_device != in mlxsw_sp_port_vlan_find_by_bridge()
350 bridge_device) in mlxsw_sp_port_vlan_find_by_bridge()
352 if (bridge_device->vlan_enabled && in mlxsw_sp_port_vlan_find_by_bridge()
621 if (bridge_port->bridge_device->multicast_enabled) in mlxsw_sp_port_attr_br_flags_set()
674 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_attr_br_vlan_set() local
679 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, orig_dev); in mlxsw_sp_port_attr_br_vlan_set()
680 if (WARN_ON(!bridge_device)) in mlxsw_sp_port_attr_br_vlan_set()
683 if (bridge_device->vlan_enabled == vlan_enabled) in mlxsw_sp_port_attr_br_vlan_set()
686 netdev_err(bridge_device->dev, "VLAN filtering can't be changed for existing bridge\n"); in mlxsw_sp_port_attr_br_vlan_set()
706 if (!bridge_port->bridge_device->multicast_enabled) in mlxsw_sp_port_attr_mrouter_set()
724 const struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_mc_flood() local
726 bridge_device = bridge_port->bridge_device; in mlxsw_sp_mc_flood()
727 return bridge_device->multicast_enabled ? bridge_port->mrouter : in mlxsw_sp_mc_flood()
737 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_mc_disabled_set() local
747 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, orig_dev); in mlxsw_sp_port_mc_disabled_set()
748 if (!bridge_device) in mlxsw_sp_port_mc_disabled_set()
751 if (bridge_device->multicast_enabled != !mc_disabled) { in mlxsw_sp_port_mc_disabled_set()
752 bridge_device->multicast_enabled = !mc_disabled; in mlxsw_sp_port_mc_disabled_set()
754 bridge_device); in mlxsw_sp_port_mc_disabled_set()
757 list_for_each_entry(bridge_port, &bridge_device->ports_list, list) { in mlxsw_sp_port_mc_disabled_set()
768 bridge_device->multicast_enabled = !mc_disabled; in mlxsw_sp_port_mc_disabled_set()
792 struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_mrouter_update_mdb() argument
797 list_for_each_entry(mid, &bridge_device->mids_list, list) in mlxsw_sp_bridge_mrouter_update_mdb()
808 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_attr_br_mrouter_set() local
816 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, orig_dev); in mlxsw_sp_port_attr_br_mrouter_set()
817 if (!bridge_device) in mlxsw_sp_port_attr_br_mrouter_set()
820 if (bridge_device->mrouter != is_mrouter) in mlxsw_sp_port_attr_br_mrouter_set()
821 mlxsw_sp_bridge_mrouter_update_mdb(mlxsw_sp, bridge_device, in mlxsw_sp_port_attr_br_mrouter_set()
823 bridge_device->mrouter = is_mrouter; in mlxsw_sp_port_attr_br_mrouter_set()
891 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_vlan_fid_join() local
897 bridge_device = bridge_port->bridge_device; in mlxsw_sp_port_vlan_fid_join()
898 fid = bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_port_vlan_fid_join()
1170 if (!bridge_port->bridge_device->vlan_enabled) in mlxsw_sp_port_vlans_add()
1347 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_fdb_set() local
1355 bridge_device = bridge_port->bridge_device; in mlxsw_sp_port_fdb_set()
1357 bridge_device, in mlxsw_sp_port_fdb_set()
1453 mlxsw_sp_mid *__mlxsw_sp_mc_get(struct mlxsw_sp_bridge_device *bridge_device, in __mlxsw_sp_mc_get() argument
1459 list_for_each_entry(mid, &bridge_device->mids_list, list) { in __mlxsw_sp_mc_get()
1493 struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_mc_get_mrouters_bitmap() argument
1498 list_for_each_entry(bridge_port, &bridge_device->ports_list, list) { in mlxsw_sp_mc_get_mrouters_bitmap()
1510 struct mlxsw_sp_bridge_device *bridge_device) in mlxsw_sp_mc_write_mdb_entry() argument
1530 mlxsw_sp_mc_get_mrouters_bitmap(flood_bitmap, bridge_device, mlxsw_sp); in mlxsw_sp_mc_write_mdb_entry()
1534 bridge_device->mrouter); in mlxsw_sp_mc_write_mdb_entry()
1563 struct mlxsw_sp_bridge_device *bridge_device, in __mlxsw_sp_mc_alloc() argument
1585 if (!bridge_device->multicast_enabled) in __mlxsw_sp_mc_alloc()
1588 if (!mlxsw_sp_mc_write_mdb_entry(mlxsw_sp, mid, bridge_device)) in __mlxsw_sp_mc_alloc()
1592 list_add_tail(&mid->list, &bridge_device->mids_list); in __mlxsw_sp_mc_alloc()
1627 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_mdb_add() local
1640 bridge_device = bridge_port->bridge_device; in mlxsw_sp_port_mdb_add()
1642 bridge_device, in mlxsw_sp_port_mdb_add()
1649 mid = __mlxsw_sp_mc_get(bridge_device, mdb->addr, fid_index); in mlxsw_sp_port_mdb_add()
1651 mid = __mlxsw_sp_mc_alloc(mlxsw_sp, bridge_device, mdb->addr, in mlxsw_sp_port_mdb_add()
1660 if (!bridge_device->multicast_enabled) in mlxsw_sp_port_mdb_add()
1682 *bridge_device) in mlxsw_sp_bridge_mdb_mc_enable_sync()
1688 mc_enabled = bridge_device->multicast_enabled; in mlxsw_sp_bridge_mdb_mc_enable_sync()
1690 list_for_each_entry(mid, &bridge_device->mids_list, list) { in mlxsw_sp_bridge_mdb_mc_enable_sync()
1693 bridge_device); in mlxsw_sp_bridge_mdb_mc_enable_sync()
1704 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_mrouter_update_mdb() local
1707 bridge_device = bridge_port->bridge_device; in mlxsw_sp_port_mrouter_update_mdb()
1709 list_for_each_entry(mid, &bridge_device->mids_list, list) { in mlxsw_sp_port_mrouter_update_mdb()
1814 if (!bridge_port->bridge_device->vlan_enabled) in mlxsw_sp_port_vlans_del()
1831 if (bridge_port->bridge_device->multicast_enabled && in __mlxsw_sp_port_mdb_del()
1851 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_mdb_del() local
1861 bridge_device = bridge_port->bridge_device; in mlxsw_sp_port_mdb_del()
1863 bridge_device, in mlxsw_sp_port_mdb_del()
1870 mid = __mlxsw_sp_mc_get(bridge_device, mdb->addr, fid_index); in mlxsw_sp_port_mdb_del()
1883 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_port_mdb_flush() local
1886 bridge_device = bridge_port->bridge_device; in mlxsw_sp_bridge_port_mdb_flush()
1888 list_for_each_entry_safe(mid, tmp, &bridge_device->mids_list, list) { in mlxsw_sp_bridge_port_mdb_flush()
1892 } else if (bridge_device->multicast_enabled && in mlxsw_sp_bridge_port_mdb_flush()
1942 mlxsw_sp_bridge_8021q_port_join(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021q_port_join() argument
1960 mlxsw_sp_bridge_8021q_port_leave(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021q_port_leave() argument
1969 mlxsw_sp_bridge_8021q_vxlan_join(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021q_vxlan_join() argument
1973 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(bridge_device->dev); in mlxsw_sp_bridge_8021q_vxlan_join()
2047 mlxsw_sp_bridge_8021q_fid_get(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021q_fid_get() argument
2050 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(bridge_device->dev); in mlxsw_sp_bridge_8021q_fid_get()
2065 vxlan_dev = mlxsw_sp_bridge_8021q_vxlan_dev_find(bridge_device->dev, in mlxsw_sp_bridge_8021q_fid_get()
2073 err = mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_bridge_8021q_fid_get()
2086 mlxsw_sp_bridge_8021q_fid_lookup(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021q_fid_lookup() argument
2089 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(bridge_device->dev); in mlxsw_sp_bridge_8021q_fid_lookup()
2095 mlxsw_sp_bridge_8021q_fid_vid(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021q_fid_vid() argument
2119 mlxsw_sp_port_vlan->bridge_port->bridge_device->dev == in mlxsw_sp_port_is_br_member()
2128 mlxsw_sp_bridge_8021d_port_join(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021d_port_join() argument
2142 if (mlxsw_sp_port_is_br_member(mlxsw_sp_port, bridge_device->dev)) { in mlxsw_sp_bridge_8021d_port_join()
2156 mlxsw_sp_bridge_8021d_port_leave(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021d_port_leave() argument
2173 mlxsw_sp_bridge_8021d_vxlan_join(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021d_vxlan_join() argument
2177 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(bridge_device->dev); in mlxsw_sp_bridge_8021d_vxlan_join()
2187 fid = mlxsw_sp_fid_8021d_lookup(mlxsw_sp, bridge_device->dev->ifindex); in mlxsw_sp_bridge_8021d_vxlan_join()
2217 mlxsw_sp_bridge_8021d_fid_get(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021d_fid_get() argument
2220 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(bridge_device->dev); in mlxsw_sp_bridge_8021d_fid_get()
2225 fid = mlxsw_sp_fid_8021d_get(mlxsw_sp, bridge_device->dev->ifindex); in mlxsw_sp_bridge_8021d_fid_get()
2232 vxlan_dev = mlxsw_sp_bridge_vxlan_dev_find(bridge_device->dev); in mlxsw_sp_bridge_8021d_fid_get()
2239 err = mlxsw_sp_bridge_8021d_vxlan_join(bridge_device, vxlan_dev, 0, in mlxsw_sp_bridge_8021d_fid_get()
2252 mlxsw_sp_bridge_8021d_fid_lookup(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021d_fid_lookup() argument
2255 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(bridge_device->dev); in mlxsw_sp_bridge_8021d_fid_lookup()
2261 return mlxsw_sp_fid_8021d_lookup(mlxsw_sp, bridge_device->dev->ifindex); in mlxsw_sp_bridge_8021d_fid_lookup()
2265 mlxsw_sp_bridge_8021d_fid_vid(struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_bridge_8021d_fid_vid() argument
2286 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_bridge_join() local
2293 bridge_device = bridge_port->bridge_device; in mlxsw_sp_port_bridge_join()
2295 err = bridge_device->ops->port_join(bridge_device, bridge_port, in mlxsw_sp_port_bridge_join()
2312 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_port_bridge_leave() local
2315 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_port_bridge_leave()
2316 if (!bridge_device) in mlxsw_sp_port_bridge_leave()
2318 bridge_port = __mlxsw_sp_bridge_port_find(bridge_device, brport_dev); in mlxsw_sp_port_bridge_leave()
2322 bridge_device->ops->port_leave(bridge_device, bridge_port, in mlxsw_sp_port_bridge_leave()
2332 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_vxlan_join() local
2334 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_bridge_vxlan_join()
2335 if (WARN_ON(!bridge_device)) in mlxsw_sp_bridge_vxlan_join()
2338 return bridge_device->ops->vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_bridge_vxlan_join()
2362 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_bridge_fid_get() local
2364 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_bridge_fid_get()
2365 if (WARN_ON(!bridge_device)) in mlxsw_sp_bridge_fid_get()
2368 return bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_bridge_fid_get()
2454 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_fdb_notify_mac_process() local
2486 bridge_device = bridge_port->bridge_device; in mlxsw_sp_fdb_notify_mac_process()
2487 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_process()
2515 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_fdb_notify_mac_lag_process() local
2548 bridge_device = bridge_port->bridge_device; in mlxsw_sp_fdb_notify_mac_lag_process()
2549 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_lag_process()
2581 struct mlxsw_sp_bridge_device *bridge_device; in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2616 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2617 if (!bridge_device) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2620 *p_vid = bridge_device->ops->fid_vid(bridge_device, fid); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2825 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_switchdev_bridge_nve_fdb_event() local
2851 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2852 if (!bridge_device) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2855 fid = bridge_device->ops->fid_lookup(bridge_device, in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2929 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_switchdev_vxlan_fdb_add() local
2942 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_switchdev_vxlan_fdb_add()
2943 if (!bridge_device) in mlxsw_sp_switchdev_vxlan_fdb_add()
2971 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_add()
3001 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_switchdev_vxlan_fdb_del() local
3012 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_switchdev_vxlan_fdb_del()
3013 if (!bridge_device) in mlxsw_sp_switchdev_vxlan_fdb_del()
3032 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_del()
3205 struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_switchdev_vxlan_vlan_add() argument
3222 mlxsw_sp_bridge_8021q_vxlan_dev_find(bridge_device->dev, vid)) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3238 return mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, in mlxsw_sp_switchdev_vxlan_vlan_add()
3278 err = mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_switchdev_vxlan_vlan_add()
3286 mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, vxlan_dev, old_vid, in mlxsw_sp_switchdev_vxlan_vlan_add()
3293 struct mlxsw_sp_bridge_device *bridge_device, in mlxsw_sp_switchdev_vxlan_vlan_del() argument
3327 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_switchdev_vxlan_vlans_add() local
3347 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_switchdev_vxlan_vlans_add()
3348 if (!bridge_device) in mlxsw_sp_switchdev_vxlan_vlans_add()
3351 if (!bridge_device->vlan_enabled) in mlxsw_sp_switchdev_vxlan_vlans_add()
3357 err = mlxsw_sp_switchdev_vxlan_vlan_add(mlxsw_sp, bridge_device, in mlxsw_sp_switchdev_vxlan_vlans_add()
3375 struct mlxsw_sp_bridge_device *bridge_device; in mlxsw_sp_switchdev_vxlan_vlans_del() local
3390 bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_switchdev_vxlan_vlans_del()
3391 if (!bridge_device) in mlxsw_sp_switchdev_vxlan_vlans_del()
3394 if (!bridge_device->vlan_enabled) in mlxsw_sp_switchdev_vxlan_vlans_del()
3398 mlxsw_sp_switchdev_vxlan_vlan_del(mlxsw_sp, bridge_device, in mlxsw_sp_switchdev_vxlan_vlans_del()