br_dev 5549 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct net_device *br_dev = netdev_master_upper_dev_get(lag_dev); br_dev 5554 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port_bridge_leave(mlxsw_sp_port, lag_dev, br_dev); br_dev 5559 drivers/net/ethernet/mellanox/mlxsw/spectrum.c br_dev = netdev_master_upper_dev_get(upper_dev); br_dev 5560 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port_bridge_leave(mlxsw_sp_port, upper_dev, br_dev); br_dev 5914 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static bool mlxsw_sp_bridge_has_multiple_vxlans(struct net_device *br_dev) br_dev 5920 drivers/net/ethernet/mellanox/mlxsw/spectrum.c netdev_for_each_lower_dev(br_dev, dev, iter) { br_dev 5928 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static bool mlxsw_sp_bridge_vxlan_vlan_is_valid(struct net_device *br_dev) br_dev 5934 drivers/net/ethernet/mellanox/mlxsw/spectrum.c netdev_for_each_lower_dev(br_dev, dev, iter) { br_dev 5952 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static bool mlxsw_sp_bridge_vxlan_is_valid(struct net_device *br_dev, br_dev 5955 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (br_multicast_enabled(br_dev)) { br_dev 5960 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (!br_vlan_enabled(br_dev) && br_dev 5961 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_bridge_has_multiple_vxlans(br_dev)) { br_dev 5966 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (br_vlan_enabled(br_dev) && br_dev 5967 drivers/net/ethernet/mellanox/mlxsw/spectrum.c !mlxsw_sp_bridge_vxlan_vlan_is_valid(br_dev)) { br_dev 6073 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct net_device *br_dev; br_dev 6079 drivers/net/ethernet/mellanox/mlxsw/spectrum.c br_dev = netdev_master_upper_dev_get(upper_dev); br_dev 6081 drivers/net/ethernet/mellanox/mlxsw/spectrum.c br_dev); br_dev 6239 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct net_device *br_dev, br_dev 6300 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static int mlxsw_sp_netdevice_bridge_event(struct net_device *br_dev, br_dev 6303 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(br_dev); br_dev 6323 drivers/net/ethernet/mellanox/mlxsw/spectrum.c !mlxsw_sp_rif_find_by_dev(mlxsw_sp, br_dev)) { br_dev 313 drivers/net/ethernet/mellanox/mlxsw/spectrum.h mlxsw_sp_bridge_vxlan_dev_find(struct net_device *br_dev) br_dev 318 drivers/net/ethernet/mellanox/mlxsw/spectrum.h netdev_for_each_lower_dev(br_dev, dev, iter) { br_dev 326 drivers/net/ethernet/mellanox/mlxsw/spectrum.h static inline bool mlxsw_sp_bridge_has_vxlan(struct net_device *br_dev) br_dev 328 drivers/net/ethernet/mellanox/mlxsw/spectrum.h return !!mlxsw_sp_bridge_vxlan_dev_find(br_dev); br_dev 443 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct net_device *br_dev, br_dev 447 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct net_device *br_dev); br_dev 449 drivers/net/ethernet/mellanox/mlxsw/spectrum.h const struct net_device *br_dev); br_dev 451 drivers/net/ethernet/mellanox/mlxsw/spectrum.h const struct net_device *br_dev, br_dev 457 drivers/net/ethernet/mellanox/mlxsw/spectrum.h const struct net_device *br_dev, br_dev 7501 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct net_device *br_dev = rif->dev; br_dev 7507 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c br_dev = vlan_dev_real_dev(rif->dev); br_dev 7508 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (WARN_ON(!netif_is_bridge_master(br_dev))) br_dev 7518 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c return mlxsw_sp_bridge_fid_get(rif->mlxsw_sp, br_dev, vid, extack); br_dev 7525 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct net_device *br_dev; br_dev 7528 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c br_dev = is_vlan_dev(rif->dev) ? vlan_dev_real_dev(rif->dev) : rif->dev; br_dev 7529 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c dev = br_fdb_find_port(br_dev, mac, vid); br_dev 143 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c mlxsw_sp_span_entry_bridge_8021q(const struct net_device *br_dev, br_dev 151 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c if (!vid && WARN_ON(br_vlan_get_pvid(br_dev, &vid))) br_dev 154 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c br_vlan_get_info(br_dev, vid, &vinfo) || br_dev 158 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c edev = br_fdb_find_port(br_dev, dmac, vid); br_dev 172 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c mlxsw_sp_span_entry_bridge_8021d(const struct net_device *br_dev, br_dev 175 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c return br_fdb_find_port(br_dev, dmac, 0); br_dev 179 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c mlxsw_sp_span_entry_bridge(const struct net_device *br_dev, br_dev 189 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c if (br_vlan_enabled(br_dev)) br_dev 190 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c dev = mlxsw_sp_span_entry_bridge_8021q(br_dev, dmac, p_vid); br_dev 192 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c dev = mlxsw_sp_span_entry_bridge_8021d(br_dev, dmac); br_dev 121 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct net_device *br_dev) br_dev 126 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (bridge_device->dev == br_dev) br_dev 133 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct net_device *br_dev) br_dev 135 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c return !!mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 158 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev) br_dev 162 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bool vlan_enabled = br_vlan_enabled(br_dev); br_dev 173 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device->dev = br_dev; br_dev 175 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device->multicast_enabled = br_multicast_enabled(br_dev); br_dev 176 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device->mrouter = br_multicast_router(br_dev); br_dev 206 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev) br_dev 210 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(bridge, br_dev); br_dev 214 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c return mlxsw_sp_bridge_device_create(bridge, br_dev); br_dev 243 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev = netdev_master_upper_dev_get(brport_dev); br_dev 246 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 249 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(bridge, br_dev); br_dev 297 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev = netdev_master_upper_dev_get(brport_dev); br_dev 308 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_get(bridge, br_dev); br_dev 1107 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct net_device *br_dev, br_dev 1115 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rif = mlxsw_sp_rif_find_by_dev(mlxsw_sp, br_dev); br_dev 1124 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c netdev_err(br_dev, "Can't change PVID, it's used by router interface\n"); br_dev 1129 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c netdev_err(br_dev, "Can't remove PVID, it's used by router interface\n"); br_dev 2024 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp_bridge_8021q_vxlan_dev_find(struct net_device *br_dev, u16 vid) br_dev 2029 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c netdev_for_each_lower_dev(br_dev, dev, iter) { br_dev 2112 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct net_device *br_dev) br_dev 2120 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev) br_dev 2282 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev, br_dev 2309 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev) br_dev 2315 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 2328 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct net_device *br_dev, br_dev 2334 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 2358 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c const struct net_device *br_dev, br_dev 2364 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 2582 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev, *dev; br_dev 2612 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get(dev); br_dev 2613 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 2616 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 2827 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev; br_dev 2843 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get(dev); br_dev 2844 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 2846 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!netif_is_bridge_master(br_dev)) br_dev 2848 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp = mlxsw_sp_lower_get(br_dev); br_dev 2851 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 2934 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev; br_dev 2940 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get(dev); br_dev 2942 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 2972 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) br_dev 3003 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 3012 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 3045 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev; br_dev 3051 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get(dev); br_dev 3052 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 3054 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!netif_is_bridge_master(br_dev)) br_dev 3056 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp = mlxsw_sp_lower_get(br_dev); br_dev 3125 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev; br_dev 3136 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get_rcu(dev); br_dev 3137 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 3139 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!netif_is_bridge_master(br_dev)) br_dev 3141 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!mlxsw_sp_port_dev_lower_find_rcu(br_dev)) br_dev 3330 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev; br_dev 3334 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get(vxlan_dev); br_dev 3335 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 3338 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp = mlxsw_sp_lower_get(br_dev); br_dev 3347 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 3377 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct net_device *br_dev; br_dev 3380 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c br_dev = netdev_master_upper_dev_get(vxlan_dev); br_dev 3381 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!br_dev) br_dev 3384 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_sp = mlxsw_sp_lower_get(br_dev); br_dev 3390 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c bridge_device = mlxsw_sp_bridge_device_find(mlxsw_sp->bridge, br_dev); br_dev 124 include/linux/if_bridge.h struct net_device *br_fdb_find_port(const struct net_device *br_dev, br_dev 131 include/linux/if_bridge.h br_fdb_find_port(const struct net_device *br_dev, br_dev 50 include/trace/events/bridge.h __string(br_dev, br->dev->name) br_dev 57 include/trace/events/bridge.h __assign_str(br_dev, br->dev->name); br_dev 64 include/trace/events/bridge.h __get_str(br_dev), __get_str(dev), __entry->addr[0], br_dev 76 include/trace/events/bridge.h __string(br_dev, br->dev->name) br_dev 83 include/trace/events/bridge.h __assign_str(br_dev, br->dev->name); br_dev 90 include/trace/events/bridge.h __get_str(br_dev), __get_str(dev), __entry->addr[0], br_dev 103 include/trace/events/bridge.h __string(br_dev, br->dev->name) br_dev 111 include/trace/events/bridge.h __assign_str(br_dev, br->dev->name); br_dev 119 include/trace/events/bridge.h __get_str(br_dev), __get_str(dev), __entry->addr[0], br_dev 281 net/bridge/br_device.c static void br_poll_controller(struct net_device *br_dev) br_dev 119 net/bridge/br_fdb.c struct net_device *br_fdb_find_port(const struct net_device *br_dev, br_dev 129 net/bridge/br_fdb.c if (!netif_is_bridge_master(br_dev)) br_dev 132 net/bridge/br_fdb.c br = netdev_priv(br_dev); br_dev 28 net/bridge/netfilter/nft_meta_bridge.c const struct net_device *br_dev; br_dev 32 net/bridge/netfilter/nft_meta_bridge.c br_dev = nft_meta_get_bridge(in); br_dev 35 net/bridge/netfilter/nft_meta_bridge.c br_dev = nft_meta_get_bridge(out); br_dev 40 net/bridge/netfilter/nft_meta_bridge.c br_dev = nft_meta_get_bridge(in); br_dev 41 net/bridge/netfilter/nft_meta_bridge.c if (!br_dev || !br_vlan_enabled(br_dev)) br_dev 51 net/bridge/netfilter/nft_meta_bridge.c br_dev = nft_meta_get_bridge(in); br_dev 52 net/bridge/netfilter/nft_meta_bridge.c if (!br_dev || !br_vlan_enabled(br_dev)) br_dev 55 net/bridge/netfilter/nft_meta_bridge.c br_vlan_get_proto(br_dev, &p_proto); br_dev 63 net/bridge/netfilter/nft_meta_bridge.c strncpy((char *)dest, br_dev ? br_dev->name : "", IFNAMSIZ); br_dev 3731 net/core/rtnetlink.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 3732 net/core/rtnetlink.c const struct net_device_ops *ops = br_dev->netdev_ops; br_dev 3842 net/core/rtnetlink.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 3843 net/core/rtnetlink.c const struct net_device_ops *ops = br_dev->netdev_ops; br_dev 4026 net/core/rtnetlink.c struct net_device *br_dev = NULL; br_dev 4048 net/core/rtnetlink.c br_dev = __dev_get_by_index(net, br_idx); br_dev 4049 net/core/rtnetlink.c if (!br_dev) br_dev 4052 net/core/rtnetlink.c ops = br_dev->netdev_ops; br_dev 4068 net/core/rtnetlink.c br_dev = netdev_master_upper_dev_get(dev); br_dev 4069 net/core/rtnetlink.c cops = br_dev->netdev_ops; br_dev 4072 net/core/rtnetlink.c if (dev != br_dev && br_dev 4076 net/core/rtnetlink.c if (br_dev != netdev_master_upper_dev_get(dev) && br_dev 4088 net/core/rtnetlink.c br_dev, dev, br_dev 4189 net/core/rtnetlink.c struct net_device *dev = NULL, *br_dev = NULL; br_dev 4225 net/core/rtnetlink.c br_dev = __dev_get_by_index(net, br_idx); br_dev 4226 net/core/rtnetlink.c if (!br_dev) { br_dev 4230 net/core/rtnetlink.c ops = br_dev->netdev_ops; br_dev 4239 net/core/rtnetlink.c br_dev = netdev_master_upper_dev_get(dev); br_dev 4240 net/core/rtnetlink.c if (!br_dev) { br_dev 4244 net/core/rtnetlink.c ops = br_dev->netdev_ops; br_dev 4254 net/core/rtnetlink.c if (!br_dev && !dev) { br_dev 4268 net/core/rtnetlink.c if (br_dev) br_dev 4269 net/core/rtnetlink.c dev = br_dev; br_dev 4303 net/core/rtnetlink.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 4322 net/core/rtnetlink.c (br_dev && br_dev 4323 net/core/rtnetlink.c nla_put_u32(skb, IFLA_MASTER, br_dev->ifindex)) || br_dev 4462 net/core/rtnetlink.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 4464 net/core/rtnetlink.c if (br_dev && br_dev->netdev_ops->ndo_bridge_getlink) { br_dev 4466 net/core/rtnetlink.c err = br_dev->netdev_ops->ndo_bridge_getlink( br_dev 4589 net/core/rtnetlink.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 4591 net/core/rtnetlink.c if (!br_dev || !br_dev->netdev_ops->ndo_bridge_setlink) { br_dev 4596 net/core/rtnetlink.c err = br_dev->netdev_ops->ndo_bridge_setlink(dev, nlh, flags, br_dev 4666 net/core/rtnetlink.c struct net_device *br_dev = netdev_master_upper_dev_get(dev); br_dev 4668 net/core/rtnetlink.c if (!br_dev || !br_dev->netdev_ops->ndo_bridge_dellink) { br_dev 4673 net/core/rtnetlink.c err = br_dev->netdev_ops->ndo_bridge_dellink(dev, nlh, flags);