| /kernel/linux/linux-5.10/net/bridge/ |
| D | br_stp.c | 68 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() 85 struct net_bridge *br; in br_should_become_root_port() local 132 static void br_root_port_block(const struct net_bridge *br, in br_root_port_block() 147 static void br_root_selection(struct net_bridge *br) in br_root_selection() 175 void br_become_root_bridge(struct net_bridge *br) in br_become_root_bridge() 193 struct net_bridge *br; in br_transmit_config() local 245 static void br_record_config_timeout_values(struct net_bridge *br, in br_record_config_timeout_values() 255 void br_transmit_tcn(struct net_bridge *br) in br_transmit_tcn() 270 struct net_bridge *br; in br_should_become_designated_port() local 298 static void br_designated_port_selection(struct net_bridge *br) in br_designated_port_selection() [all …]
|
| D | br_multicast.c | 81 br_sg_port_find(struct net_bridge *br, in br_sg_port_find() 90 static struct net_bridge_mdb_entry *br_mdb_ip_get_rcu(struct net_bridge *br, in br_mdb_ip_get_rcu() 96 struct net_bridge_mdb_entry *br_mdb_ip_get(struct net_bridge *br, in br_mdb_ip_get() 110 static struct net_bridge_mdb_entry *br_mdb_ip4_get(struct net_bridge *br, in br_mdb_ip4_get() 124 static struct net_bridge_mdb_entry *br_mdb_ip6_get(struct net_bridge *br, in br_mdb_ip6_get() 139 struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br, in br_mdb_get() 205 struct net_bridge *br = pg->key.port->br; in __fwd_add_star_excl() local 227 struct net_bridge *br = pg->key.port->br; in __fwd_del_star_excl() local 252 struct net_bridge *br = pg->key.port->br; in br_multicast_star_g_handle_mode() local 309 struct net_bridge *br = star_mp->br; in br_multicast_star_g_host_state() local [all …]
|
| D | br_sysfs_br.c | 31 struct net_bridge *br = to_bridge(d); in store_bridge_parm() local 58 struct net_bridge *br = to_bridge(d); in forward_delay_show() local 102 struct net_bridge *br = to_bridge(d); in ageing_time_show() local 106 static int set_ageing_time(struct net_bridge *br, unsigned long val) in set_ageing_time() 122 struct net_bridge *br = to_bridge(d); in stp_state_show() local 127 static int set_stp_state(struct net_bridge *br, unsigned long val) in set_stp_state() 144 struct net_bridge *br = to_bridge(d); in group_fwd_mask_show() local 148 static int set_group_fwd_mask(struct net_bridge *br, unsigned long val) in set_group_fwd_mask() 170 struct net_bridge *br = to_bridge(d); in priority_show() local 175 static int set_priority(struct net_bridge *br, unsigned long val) in set_priority() [all …]
|
| D | br_fdb.c | 57 int br_fdb_hash_init(struct net_bridge *br) in br_fdb_hash_init() 62 void br_fdb_hash_fini(struct net_bridge *br) in br_fdb_hash_fini() 70 static inline unsigned long hold_time(const struct net_bridge *br) in hold_time() 75 static inline int has_expired(const struct net_bridge *br, in has_expired() 105 static struct net_bridge_fdb_entry *br_fdb_find(struct net_bridge *br, in br_fdb_find() 126 struct net_bridge *br; in br_fdb_find_port() local 144 struct net_bridge_fdb_entry *br_fdb_find_rcu(struct net_bridge *br, in br_fdb_find_rcu() 156 static void fdb_add_hw_addr(struct net_bridge *br, const unsigned char *addr) in fdb_add_hw_addr() 184 static void fdb_del_hw_addr(struct net_bridge *br, const unsigned char *addr) in fdb_del_hw_addr() 196 static void fdb_delete(struct net_bridge *br, struct net_bridge_fdb_entry *f, in fdb_delete() [all …]
|
| D | br_device.c | 30 struct net_bridge *br = netdev_priv(dev); in br_dev_xmit() local 119 struct net_bridge *br = netdev_priv(dev); in br_dev_init() local 161 struct net_bridge *br = netdev_priv(dev); in br_dev_uninit() local 173 struct net_bridge *br = netdev_priv(dev); in br_dev_open() local 198 struct net_bridge *br = netdev_priv(dev); in br_dev_stop() local 214 struct net_bridge *br = netdev_priv(dev); in br_get_stats64() local 222 struct net_bridge *br = netdev_priv(dev); in br_change_mtu() local 239 struct net_bridge *br = netdev_priv(dev); in br_set_mac_address() local 272 struct net_bridge *br = netdev_priv(dev); in br_get_link_ksettings() local 303 struct net_bridge *br = netdev_priv(dev); in br_fix_features() local [all …]
|
| D | br_if.c | 67 struct net_bridge *br = p->br; in br_port_carrier_check() local 135 void br_manage_promisc(struct net_bridge *br) in br_manage_promisc() 222 static void nbp_update_port_count(struct net_bridge *br) in nbp_update_port_count() 290 static unsigned get_max_headroom(struct net_bridge *br) in get_max_headroom() 305 static void update_headroom(struct net_bridge *br, int new_hr) in update_headroom() 326 struct net_bridge *br = p->br; in del_nbp() local 372 struct net_bridge *br = netdev_priv(dev); in br_dev_delete() local 390 static int find_portno(struct net_bridge *br) in find_portno() 411 static struct net_bridge_port *new_nbp(struct net_bridge *br, in new_nbp() 493 static int br_mtu_min(const struct net_bridge *br) in br_mtu_min() [all …]
|
| D | br_stp_if.c | 49 void br_stp_enable_bridge(struct net_bridge *br) in br_stp_enable_bridge() 69 void br_stp_disable_bridge(struct net_bridge *br) in br_stp_disable_bridge() 101 struct net_bridge *br = p->br; in br_stp_disable_port() local 128 static int br_stp_call_user(struct net_bridge *br, char *arg) in br_stp_call_user() 148 static void br_stp_start(struct net_bridge *br) in br_stp_start() 181 static void br_stp_stop(struct net_bridge *br) in br_stp_stop() 199 int br_stp_set_enabled(struct net_bridge *br, unsigned long val, in br_stp_set_enabled() 225 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr) in br_stp_change_bridge_id() 259 bool br_stp_recalculate_bridge_id(struct net_bridge *br) in br_stp_recalculate_bridge_id() 285 void br_stp_set_bridge_priority(struct net_bridge *br, u16 newprio) in br_stp_set_bridge_priority()
|
| D | br_stp_timer.c | 17 static int br_is_designated_for_some_port(const struct net_bridge *br) in br_is_designated_for_some_port() 32 struct net_bridge *br = from_timer(br, t, hello_timer); in br_hello_timer_expired() local 49 struct net_bridge *br = p->br; in br_message_age_timer_expired() local 82 struct net_bridge *br = p->br; in br_forward_delay_timer_expired() local 105 struct net_bridge *br = from_timer(br, t, tcn_timer); in br_tcn_timer_expired() local 119 struct net_bridge *br = from_timer(br, t, topology_change_timer); in br_topology_change_timer_expired() local 141 void br_stp_timer_init(struct net_bridge *br) in br_stp_timer_init()
|
| D | br_mrp.c | 29 static struct net_bridge_port *br_mrp_get_port(struct net_bridge *br, in br_mrp_get_port() 45 static struct br_mrp *br_mrp_find_id(struct net_bridge *br, u32 ring_id) in br_mrp_find_id() 61 static struct br_mrp *br_mrp_find_in_id(struct net_bridge *br, u32 in_id) in br_mrp_find_in_id() 77 static bool br_mrp_unique_ifindex(struct net_bridge *br, u32 ifindex) in br_mrp_unique_ifindex() 101 static struct br_mrp *br_mrp_find_port(struct net_bridge *br, in br_mrp_find_port() 394 static void br_mrp_del_impl(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_del_impl() 453 int br_mrp_add(struct net_bridge *br, struct br_mrp_instance *instance) in br_mrp_add() 515 void br_mrp_port_del(struct net_bridge *br, struct net_bridge_port *p) in br_mrp_port_del() 529 int br_mrp_del(struct net_bridge *br, struct br_mrp_instance *instance) in br_mrp_del() 602 int br_mrp_set_ring_state(struct net_bridge *br, in br_mrp_set_ring_state() [all …]
|
| D | br_vlan.c | 86 static int __vlan_vid_add(struct net_device *dev, struct net_bridge *br, in __vlan_vid_add() 129 static int __vlan_vid_del(struct net_device *dev, struct net_bridge *br, in __vlan_vid_del() 147 br_vlan_get_master(struct net_bridge *br, u16 vid, in br_vlan_get_master() 230 struct net_bridge *br; in __vlan_add() local 394 static void __vlan_flush(const struct net_bridge *br, in __vlan_flush() 421 struct sk_buff *br_handle_vlan(struct net_bridge *br, in br_handle_vlan() 474 static bool __allowed_ingress(const struct net_bridge *br, in __allowed_ingress() 577 bool br_allowed_ingress(const struct net_bridge *br, in br_allowed_ingress() 616 struct net_bridge *br = p->br; in br_should_learn() local 646 static int br_vlan_add_existing(struct net_bridge *br, in br_vlan_add_existing() [all …]
|
| D | br_mrp_switchdev.c | 7 int br_mrp_switchdev_add(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_add() 27 int br_mrp_switchdev_del(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_del() 46 int br_mrp_switchdev_set_ring_role(struct net_bridge *br, in br_mrp_switchdev_set_ring_role() 66 int br_mrp_switchdev_send_ring_test(struct net_bridge *br, in br_mrp_switchdev_send_ring_test() 90 int br_mrp_switchdev_set_ring_state(struct net_bridge *br, in br_mrp_switchdev_set_ring_state() 110 int br_mrp_switchdev_set_in_role(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_in_role() 132 int br_mrp_switchdev_set_in_state(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_in_state() 151 int br_mrp_switchdev_send_in_test(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_send_in_test()
|
| D | br.c | 34 struct net_bridge *br; in br_device_event() local 155 struct net_bridge *br; in br_switchdev_event() local 214 int br_boolopt_toggle(struct net_bridge *br, enum br_boolopt_id opt, bool on, in br_boolopt_toggle() 230 int br_boolopt_get(const struct net_bridge *br, enum br_boolopt_id opt) in br_boolopt_get() 244 int br_boolopt_multi_toggle(struct net_bridge *br, in br_boolopt_multi_toggle() 266 void br_boolopt_multi_get(const struct net_bridge *br, in br_boolopt_multi_get() 280 void br_opt_toggle(struct net_bridge *br, enum net_bridge_opts opt, bool on) in br_opt_toggle()
|
| /kernel/linux/linux-6.6/net/bridge/ |
| D | br_stp.c | 88 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() 105 struct net_bridge *br; in br_should_become_root_port() local 152 static void br_root_port_block(const struct net_bridge *br, in br_root_port_block() 167 static void br_root_selection(struct net_bridge *br) in br_root_selection() 195 void br_become_root_bridge(struct net_bridge *br) in br_become_root_bridge() 213 struct net_bridge *br; in br_transmit_config() local 265 static void br_record_config_timeout_values(struct net_bridge *br, in br_record_config_timeout_values() 275 void br_transmit_tcn(struct net_bridge *br) in br_transmit_tcn() 290 struct net_bridge *br; in br_should_become_designated_port() local 318 static void br_designated_port_selection(struct net_bridge *br) in br_designated_port_selection() [all …]
|
| D | br_sysfs_br.c | 33 int (*set)(struct net_bridge *br, unsigned long val, in store_bridge_parm() 36 struct net_bridge *br = to_bridge(d); in store_bridge_parm() local 69 struct net_bridge *br = to_bridge(d); in forward_delay_show() local 73 static int set_forward_delay(struct net_bridge *br, unsigned long val, in set_forward_delay() 94 static int set_hello_time(struct net_bridge *br, unsigned long val, in set_hello_time() 115 static int set_max_age(struct net_bridge *br, unsigned long val, in set_max_age() 131 struct net_bridge *br = to_bridge(d); in ageing_time_show() local 135 static int set_ageing_time(struct net_bridge *br, unsigned long val, in set_ageing_time() 152 struct net_bridge *br = to_bridge(d); in stp_state_show() local 157 static int set_stp_state(struct net_bridge *br, unsigned long val, in set_stp_state() [all …]
|
| D | br_fdb.c | 53 int br_fdb_hash_init(struct net_bridge *br) in br_fdb_hash_init() 58 void br_fdb_hash_fini(struct net_bridge *br) in br_fdb_hash_fini() 66 static inline unsigned long hold_time(const struct net_bridge *br) in hold_time() 71 static inline int has_expired(const struct net_bridge *br, in has_expired() 86 static int fdb_to_nud(const struct net_bridge *br, in fdb_to_nud() 99 static int fdb_fill_info(struct sk_buff *skb, const struct net_bridge *br, in fdb_fill_info() 187 static void fdb_notify(struct net_bridge *br, in fdb_notify() 230 static struct net_bridge_fdb_entry *br_fdb_find(struct net_bridge *br, in br_fdb_find() 251 struct net_bridge *br; in br_fdb_find_port() local 269 struct net_bridge_fdb_entry *br_fdb_find_rcu(struct net_bridge *br, in br_fdb_find_rcu() [all …]
|
| D | br_device.c | 32 struct net_bridge *br = netdev_priv(dev); in br_dev_xmit() local 126 struct net_bridge *br = netdev_priv(dev); in br_dev_init() local 168 struct net_bridge *br = netdev_priv(dev); in br_dev_uninit() local 180 struct net_bridge *br = netdev_priv(dev); in br_dev_open() local 205 struct net_bridge *br = netdev_priv(dev); in br_dev_stop() local 220 struct net_bridge *br = netdev_priv(dev); in br_change_mtu() local 237 struct net_bridge *br = netdev_priv(dev); in br_set_mac_address() local 270 struct net_bridge *br = netdev_priv(dev); in br_get_link_ksettings() local 301 struct net_bridge *br = netdev_priv(dev); in br_fix_features() local 313 struct net_bridge *br = netdev_priv(dev); in br_netpoll_cleanup() local [all …]
|
| D | br_if.c | 76 struct net_bridge *br = p->br; in br_port_carrier_check() local 144 void br_manage_promisc(struct net_bridge *br) in br_manage_promisc() 231 static void nbp_update_port_count(struct net_bridge *br) in nbp_update_port_count() 299 static unsigned get_max_headroom(struct net_bridge *br) in get_max_headroom() 314 static void update_headroom(struct net_bridge *br, int new_hr) in update_headroom() 335 struct net_bridge *br = p->br; in del_nbp() local 382 struct net_bridge *br = netdev_priv(dev); in br_dev_delete() local 400 static int find_portno(struct net_bridge *br) in find_portno() 421 static struct net_bridge_port *new_nbp(struct net_bridge *br, in new_nbp() 501 static int br_mtu_min(const struct net_bridge *br) in br_mtu_min() [all …]
|
| D | br_stp_if.c | 49 void br_stp_enable_bridge(struct net_bridge *br) in br_stp_enable_bridge() 69 void br_stp_disable_bridge(struct net_bridge *br) in br_stp_disable_bridge() 101 struct net_bridge *br = p->br; in br_stp_disable_port() local 128 static int br_stp_call_user(struct net_bridge *br, char *arg) in br_stp_call_user() 148 static void br_stp_start(struct net_bridge *br) in br_stp_start() 181 static void br_stp_stop(struct net_bridge *br) in br_stp_stop() 199 int br_stp_set_enabled(struct net_bridge *br, unsigned long val, in br_stp_set_enabled() 222 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr) in br_stp_change_bridge_id() 256 bool br_stp_recalculate_bridge_id(struct net_bridge *br) in br_stp_recalculate_bridge_id() 282 void br_stp_set_bridge_priority(struct net_bridge *br, u16 newprio) in br_stp_set_bridge_priority()
|
| D | br_stp_timer.c | 17 static int br_is_designated_for_some_port(const struct net_bridge *br) in br_is_designated_for_some_port() 32 struct net_bridge *br = from_timer(br, t, hello_timer); in br_hello_timer_expired() local 49 struct net_bridge *br = p->br; in br_message_age_timer_expired() local 82 struct net_bridge *br = p->br; in br_forward_delay_timer_expired() local 105 struct net_bridge *br = from_timer(br, t, tcn_timer); in br_tcn_timer_expired() local 119 struct net_bridge *br = from_timer(br, t, topology_change_timer); in br_topology_change_timer_expired() local 141 void br_stp_timer_init(struct net_bridge *br) in br_stp_timer_init()
|
| D | br_cfm.c | 7 static struct br_cfm_mep *br_mep_find(struct net_bridge *br, u32 instance) in br_mep_find() 18 static struct br_cfm_mep *br_mep_find_ifindex(struct net_bridge *br, in br_mep_find_ifindex() 44 static struct net_bridge_port *br_mep_get_port(struct net_bridge *br, in br_mep_get_port() 379 struct net_bridge *br; in br_cfm_frame_rx() local 497 int br_cfm_mep_create(struct net_bridge *br, in br_cfm_mep_create() 569 static void mep_delete_implementation(struct net_bridge *br, in mep_delete_implementation() 594 int br_cfm_mep_delete(struct net_bridge *br, in br_cfm_mep_delete() 614 int br_cfm_mep_config_set(struct net_bridge *br, in br_cfm_mep_config_set() 635 int br_cfm_cc_config_set(struct net_bridge *br, in br_cfm_cc_config_set() 673 int br_cfm_cc_peer_mep_add(struct net_bridge *br, const u32 instance, in br_cfm_cc_peer_mep_add() [all …]
|
| D | br_mrp_switchdev.c | 8 br_mrp_switchdev_port_obj(struct net_bridge *br, in br_mrp_switchdev_port_obj() 31 int br_mrp_switchdev_add(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_add() 48 int br_mrp_switchdev_del(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_switchdev_del() 65 br_mrp_switchdev_set_ring_role(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_ring_role() 102 br_mrp_switchdev_send_ring_test(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_send_ring_test() 122 int br_mrp_switchdev_set_ring_state(struct net_bridge *br, in br_mrp_switchdev_set_ring_state() 140 br_mrp_switchdev_set_in_role(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_in_role() 179 int br_mrp_switchdev_set_in_state(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_set_in_state() 196 br_mrp_switchdev_send_in_test(struct net_bridge *br, struct br_mrp *mrp, in br_mrp_switchdev_send_in_test()
|
| D | br_cfm_netlink.c | 90 static int br_mep_create_parse(struct net_bridge *br, struct nlattr *attr, in br_mep_create_parse() 130 static int br_mep_delete_parse(struct net_bridge *br, struct nlattr *attr, in br_mep_delete_parse() 153 static int br_mep_config_parse(struct net_bridge *br, struct nlattr *attr, in br_mep_config_parse() 195 static int br_cc_config_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_config_parse() 236 static int br_cc_peer_mep_add_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_peer_mep_add_parse() 263 static int br_cc_peer_mep_remove_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_peer_mep_remove_parse() 290 static int br_cc_rdi_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_rdi_parse() 317 static int br_cc_ccm_tx_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_ccm_tx_parse() 379 int br_cfm_parse(struct net_bridge *br, struct net_bridge_port *p, in br_cfm_parse() 455 int br_cfm_config_fill_info(struct sk_buff *skb, struct net_bridge *br) in br_cfm_config_fill_info() [all …]
|
| D | br_mrp.c | 36 static struct net_bridge_port *br_mrp_get_port(struct net_bridge *br, in br_mrp_get_port() 52 static struct br_mrp *br_mrp_find_id(struct net_bridge *br, u32 ring_id) in br_mrp_find_id() 68 static struct br_mrp *br_mrp_find_in_id(struct net_bridge *br, u32 in_id) in br_mrp_find_in_id() 84 static bool br_mrp_unique_ifindex(struct net_bridge *br, u32 ifindex) in br_mrp_unique_ifindex() 108 static struct br_mrp *br_mrp_find_port(struct net_bridge *br, in br_mrp_find_port() 428 static void br_mrp_del_impl(struct net_bridge *br, struct br_mrp *mrp) in br_mrp_del_impl() 497 int br_mrp_add(struct net_bridge *br, struct br_mrp_instance *instance) in br_mrp_add() 562 void br_mrp_port_del(struct net_bridge *br, struct net_bridge_port *p) in br_mrp_port_del() 576 int br_mrp_del(struct net_bridge *br, struct br_mrp_instance *instance) in br_mrp_del() 649 int br_mrp_set_ring_state(struct net_bridge *br, in br_mrp_set_ring_state() [all …]
|
| D | br_vlan.c | 103 static int __vlan_vid_add(struct net_device *dev, struct net_bridge *br, in __vlan_vid_add() 144 static int __vlan_vid_del(struct net_device *dev, struct net_bridge *br, in __vlan_vid_del() 162 br_vlan_get_master(struct net_bridge *br, u16 vid, in br_vlan_get_master() 231 struct net_bridge *br; in br_vlan_init_state() local 265 struct net_bridge *br; in __vlan_add() local 439 static void __vlan_flush(const struct net_bridge *br, in __vlan_flush() 473 struct sk_buff *br_handle_vlan(struct net_bridge *br, in br_handle_vlan() 534 static bool __allowed_ingress(const struct net_bridge *br, in __allowed_ingress() 641 bool br_allowed_ingress(const struct net_bridge *br, in br_allowed_ingress() 682 struct net_bridge *br = p->br; in br_should_learn() local [all …]
|
| D | br_mrp_netlink.c | 31 static int br_mrp_instance_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_instance_parse() 134 static int br_mrp_ring_state_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_ring_state_parse() 168 static int br_mrp_ring_role_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_ring_role_parse() 205 static int br_mrp_start_test_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_start_test_parse() 248 static int br_mrp_in_state_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_in_state_parse() 284 static int br_mrp_in_role_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_in_role_parse() 324 static int br_mrp_start_in_test_parse(struct net_bridge *br, in br_mrp_start_in_test_parse() 356 int br_mrp_parse(struct net_bridge *br, struct net_bridge_port *p, in br_mrp_parse() 447 int br_mrp_fill_info(struct sk_buff *skb, struct net_bridge *br) in br_mrp_fill_info()
|