Home
last modified time | relevance | path

Searched refs:br_dev (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c121 const struct net_device *br_dev) in mlxsw_sp_bridge_device_find() argument
126 if (bridge_device->dev == br_dev) in mlxsw_sp_bridge_device_find()
133 const struct net_device *br_dev) in mlxsw_sp_bridge_device_is_offloaded() argument
135 return !!mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); in mlxsw_sp_bridge_device_is_offloaded()
161 struct net_device *br_dev, in mlxsw_sp_bridge_device_vxlan_init() argument
168 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_device_vxlan_init()
171 br_dev, dev, 0, in mlxsw_sp_bridge_device_vxlan_init()
183 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_device_vxlan_init()
194 struct net_device *br_dev) in mlxsw_sp_bridge_device_vxlan_fini() argument
199 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_device_vxlan_fini()
[all …]
Dspectrum_span.c260 mlxsw_sp_span_entry_bridge_8021q(const struct net_device *br_dev, in mlxsw_sp_span_entry_bridge_8021q() argument
268 if (!vid && WARN_ON(br_vlan_get_pvid(br_dev, &vid))) in mlxsw_sp_span_entry_bridge_8021q()
271 br_vlan_get_info(br_dev, vid, &vinfo) || in mlxsw_sp_span_entry_bridge_8021q()
275 edev = br_fdb_find_port(br_dev, dmac, vid); in mlxsw_sp_span_entry_bridge_8021q()
289 mlxsw_sp_span_entry_bridge_8021d(const struct net_device *br_dev, in mlxsw_sp_span_entry_bridge_8021d() argument
292 return br_fdb_find_port(br_dev, dmac, 0); in mlxsw_sp_span_entry_bridge_8021d()
296 mlxsw_sp_span_entry_bridge(const struct net_device *br_dev, in mlxsw_sp_span_entry_bridge() argument
306 if (br_vlan_enabled(br_dev)) in mlxsw_sp_span_entry_bridge()
307 dev = mlxsw_sp_span_entry_bridge_8021q(br_dev, dmac, p_vid); in mlxsw_sp_span_entry_bridge()
309 dev = mlxsw_sp_span_entry_bridge_8021d(br_dev, dmac); in mlxsw_sp_span_entry_bridge()
Dspectrum.h364 mlxsw_sp_bridge_vxlan_dev_find(struct net_device *br_dev) in mlxsw_sp_bridge_vxlan_dev_find() argument
369 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_vxlan_dev_find()
377 static inline bool mlxsw_sp_bridge_has_vxlan(struct net_device *br_dev) in mlxsw_sp_bridge_has_vxlan() argument
379 return !!mlxsw_sp_bridge_vxlan_dev_find(br_dev); in mlxsw_sp_bridge_has_vxlan()
560 struct net_device *br_dev,
564 struct net_device *br_dev);
566 const struct net_device *br_dev);
568 const struct net_device *br_dev,
Dspectrum.c3412 struct net_device *br_dev = netdev_master_upper_dev_get(lag_dev); in mlxsw_sp_port_lag_uppers_cleanup() local
3417 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, lag_dev, br_dev); in mlxsw_sp_port_lag_uppers_cleanup()
3422 br_dev = netdev_master_upper_dev_get(upper_dev); in mlxsw_sp_port_lag_uppers_cleanup()
3423 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, upper_dev, br_dev); in mlxsw_sp_port_lag_uppers_cleanup()
3777 static bool mlxsw_sp_bridge_has_multiple_vxlans(struct net_device *br_dev) in mlxsw_sp_bridge_has_multiple_vxlans() argument
3783 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_has_multiple_vxlans()
3791 static bool mlxsw_sp_bridge_vxlan_vlan_is_valid(struct net_device *br_dev) in mlxsw_sp_bridge_vxlan_vlan_is_valid() argument
3797 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_vxlan_vlan_is_valid()
3815 static bool mlxsw_sp_bridge_vxlan_is_valid(struct net_device *br_dev, in mlxsw_sp_bridge_vxlan_is_valid() argument
3818 if (br_multicast_enabled(br_dev)) { in mlxsw_sp_bridge_vxlan_is_valid()
[all …]
Dspectrum_router.c7576 struct net_device *br_dev; in mlxsw_sp_rif_vlan_fid_get() local
7582 br_dev = vlan_dev_real_dev(rif->dev); in mlxsw_sp_rif_vlan_fid_get()
7583 if (WARN_ON(!netif_is_bridge_master(br_dev))) in mlxsw_sp_rif_vlan_fid_get()
7600 struct net_device *br_dev; in mlxsw_sp_rif_vlan_fdb_del() local
7603 br_dev = is_vlan_dev(rif->dev) ? vlan_dev_real_dev(rif->dev) : rif->dev; in mlxsw_sp_rif_vlan_fdb_del()
7604 dev = br_fdb_find_port(br_dev, mac, vid); in mlxsw_sp_rif_vlan_fdb_del()
/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c319 struct net_device *br_dev = netdev_master_upper_dev_get(dev); in prestera_bridge_port_by_dev() local
322 if (!br_dev) in prestera_bridge_port_by_dev()
325 bridge = prestera_bridge_by_dev(swdev, br_dev); in prestera_bridge_port_by_dev()