/Linux-v5.4/net/bridge/netfilter/ |
D | nft_meta_bridge.c | 28 const struct net_device *br_dev; in nft_meta_bridge_get_eval() local 32 br_dev = nft_meta_get_bridge(in); in nft_meta_bridge_get_eval() 35 br_dev = nft_meta_get_bridge(out); in nft_meta_bridge_get_eval() 40 br_dev = nft_meta_get_bridge(in); in nft_meta_bridge_get_eval() 41 if (!br_dev || !br_vlan_enabled(br_dev)) in nft_meta_bridge_get_eval() 51 br_dev = nft_meta_get_bridge(in); in nft_meta_bridge_get_eval() 52 if (!br_dev || !br_vlan_enabled(br_dev)) in nft_meta_bridge_get_eval() 55 br_vlan_get_proto(br_dev, &p_proto); in nft_meta_bridge_get_eval() 63 strncpy((char *)dest, br_dev ? br_dev->name : "", IFNAMSIZ); in nft_meta_bridge_get_eval()
|
/Linux-v5.4/include/trace/events/ |
D | bridge.h | 50 __string(br_dev, br->dev->name) 57 __assign_str(br_dev, br->dev->name); 64 __get_str(br_dev), __get_str(dev), __entry->addr[0], 76 __string(br_dev, br->dev->name) 83 __assign_str(br_dev, br->dev->name); 90 __get_str(br_dev), __get_str(dev), __entry->addr[0], 103 __string(br_dev, br->dev->name) 111 __assign_str(br_dev, br->dev->name); 119 __get_str(br_dev), __get_str(dev), __entry->addr[0],
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 121 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() 158 struct net_device *br_dev) in mlxsw_sp_bridge_device_create() argument 162 bool vlan_enabled = br_vlan_enabled(br_dev); in mlxsw_sp_bridge_device_create() 173 bridge_device->dev = br_dev; 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() 206 struct net_device *br_dev) in mlxsw_sp_bridge_device_get() argument [all …]
|
D | spectrum_span.c | 143 mlxsw_sp_span_entry_bridge_8021q(const struct net_device *br_dev, in mlxsw_sp_span_entry_bridge_8021q() argument 151 if (!vid && WARN_ON(br_vlan_get_pvid(br_dev, &vid))) in mlxsw_sp_span_entry_bridge_8021q() 154 br_vlan_get_info(br_dev, vid, &vinfo) || in mlxsw_sp_span_entry_bridge_8021q() 158 edev = br_fdb_find_port(br_dev, dmac, vid); in mlxsw_sp_span_entry_bridge_8021q() 172 mlxsw_sp_span_entry_bridge_8021d(const struct net_device *br_dev, in mlxsw_sp_span_entry_bridge_8021d() argument 175 return br_fdb_find_port(br_dev, dmac, 0); in mlxsw_sp_span_entry_bridge_8021d() 179 mlxsw_sp_span_entry_bridge(const struct net_device *br_dev, in mlxsw_sp_span_entry_bridge() argument 189 if (br_vlan_enabled(br_dev)) in mlxsw_sp_span_entry_bridge() 190 dev = mlxsw_sp_span_entry_bridge_8021q(br_dev, dmac, p_vid); in mlxsw_sp_span_entry_bridge() 192 dev = mlxsw_sp_span_entry_bridge_8021d(br_dev, dmac); in mlxsw_sp_span_entry_bridge()
|
D | spectrum.h | 313 mlxsw_sp_bridge_vxlan_dev_find(struct net_device *br_dev) in mlxsw_sp_bridge_vxlan_dev_find() argument 318 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_vxlan_dev_find() 326 static inline bool mlxsw_sp_bridge_has_vxlan(struct net_device *br_dev) in mlxsw_sp_bridge_has_vxlan() argument 328 return !!mlxsw_sp_bridge_vxlan_dev_find(br_dev); in mlxsw_sp_bridge_has_vxlan() 443 struct net_device *br_dev, 447 struct net_device *br_dev); 449 const struct net_device *br_dev); 451 const struct net_device *br_dev, 457 const struct net_device *br_dev,
|
D | spectrum.c | 5527 struct net_device *br_dev = netdev_master_upper_dev_get(lag_dev); in mlxsw_sp_port_lag_uppers_cleanup() local 5532 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, lag_dev, br_dev); in mlxsw_sp_port_lag_uppers_cleanup() 5537 br_dev = netdev_master_upper_dev_get(upper_dev); in mlxsw_sp_port_lag_uppers_cleanup() 5538 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, upper_dev, br_dev); in mlxsw_sp_port_lag_uppers_cleanup() 5892 static bool mlxsw_sp_bridge_has_multiple_vxlans(struct net_device *br_dev) in mlxsw_sp_bridge_has_multiple_vxlans() argument 5898 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_has_multiple_vxlans() 5906 static bool mlxsw_sp_bridge_vxlan_vlan_is_valid(struct net_device *br_dev) in mlxsw_sp_bridge_vxlan_vlan_is_valid() argument 5912 netdev_for_each_lower_dev(br_dev, dev, iter) { in mlxsw_sp_bridge_vxlan_vlan_is_valid() 5930 static bool mlxsw_sp_bridge_vxlan_is_valid(struct net_device *br_dev, in mlxsw_sp_bridge_vxlan_is_valid() argument 5933 if (br_multicast_enabled(br_dev)) { in mlxsw_sp_bridge_vxlan_is_valid() [all …]
|
D | spectrum_router.c | 7493 struct net_device *br_dev = rif->dev; in mlxsw_sp_rif_vlan_fid_get() local 7499 br_dev = vlan_dev_real_dev(rif->dev); in mlxsw_sp_rif_vlan_fid_get() 7500 if (WARN_ON(!netif_is_bridge_master(br_dev))) in mlxsw_sp_rif_vlan_fid_get() 7510 return mlxsw_sp_bridge_fid_get(rif->mlxsw_sp, br_dev, vid, extack); in mlxsw_sp_rif_vlan_fid_get() 7517 struct net_device *br_dev; in mlxsw_sp_rif_vlan_fdb_del() local 7520 br_dev = is_vlan_dev(rif->dev) ? vlan_dev_real_dev(rif->dev) : rif->dev; in mlxsw_sp_rif_vlan_fdb_del() 7521 dev = br_fdb_find_port(br_dev, mac, vid); in mlxsw_sp_rif_vlan_fdb_del()
|
/Linux-v5.4/include/linux/ |
D | if_bridge.h | 124 struct net_device *br_fdb_find_port(const struct net_device *br_dev, 131 br_fdb_find_port(const struct net_device *br_dev, in br_fdb_find_port() argument
|
/Linux-v5.4/net/core/ |
D | rtnetlink.c | 3722 struct net_device *br_dev = netdev_master_upper_dev_get(dev); in rtnl_fdb_add() local 3723 const struct net_device_ops *ops = br_dev->netdev_ops; in rtnl_fdb_add() 3833 struct net_device *br_dev = netdev_master_upper_dev_get(dev); in rtnl_fdb_del() local 3834 const struct net_device_ops *ops = br_dev->netdev_ops; in rtnl_fdb_del() 4017 struct net_device *br_dev = NULL; in rtnl_fdb_dump() local 4039 br_dev = __dev_get_by_index(net, br_idx); in rtnl_fdb_dump() 4040 if (!br_dev) in rtnl_fdb_dump() 4043 ops = br_dev->netdev_ops; in rtnl_fdb_dump() 4059 br_dev = netdev_master_upper_dev_get(dev); in rtnl_fdb_dump() 4060 cops = br_dev->netdev_ops; in rtnl_fdb_dump() [all …]
|
/Linux-v5.4/net/bridge/ |
D | br_fdb.c | 119 struct net_device *br_fdb_find_port(const struct net_device *br_dev, in br_fdb_find_port() argument 129 if (!netif_is_bridge_master(br_dev)) in br_fdb_find_port() 132 br = netdev_priv(br_dev); in br_fdb_find_port()
|
D | br_device.c | 275 static void br_poll_controller(struct net_device *br_dev) in br_poll_controller() argument
|