• Home
  • Raw
  • Download

Lines Matching refs:br

7 static struct br_cfm_mep *br_mep_find(struct net_bridge *br, u32 instance)  in br_mep_find()  argument
11 hlist_for_each_entry(mep, &br->mep_list, head) in br_mep_find()
18 static struct br_cfm_mep *br_mep_find_ifindex(struct net_bridge *br, in br_mep_find_ifindex() argument
23 hlist_for_each_entry_rcu(mep, &br->mep_list, head, in br_mep_find_ifindex()
44 static struct net_bridge_port *br_mep_get_port(struct net_bridge *br, in br_mep_get_port() argument
49 list_for_each_entry(port, &br->port_list, list) in br_mep_get_port()
145 br_info_notify(event, port->br, NULL, filter); in br_cfm_notify()
379 struct net_bridge *br; in br_cfm_frame_rx() local
392 br = port->br; in br_cfm_frame_rx()
393 mep = br_mep_find_ifindex(br, port->dev->ifindex); in br_cfm_frame_rx()
497 int br_cfm_mep_create(struct net_bridge *br, in br_cfm_mep_create() argument
527 p = br_mep_get_port(br, create->ifindex); in br_cfm_mep_create()
533 mep = br_mep_find(br, instance); in br_cfm_mep_create()
542 mep = br_mep_find_ifindex(br, create->ifindex); in br_cfm_mep_create()
561 if (hlist_empty(&br->mep_list)) in br_cfm_mep_create()
562 br_add_frame(br, &cfm_frame_type); in br_cfm_mep_create()
564 hlist_add_tail_rcu(&mep->head, &br->mep_list); in br_cfm_mep_create()
569 static void mep_delete_implementation(struct net_bridge *br, in mep_delete_implementation() argument
590 if (hlist_empty(&br->mep_list)) in mep_delete_implementation()
591 br_del_frame(br, &cfm_frame_type); in mep_delete_implementation()
594 int br_cfm_mep_delete(struct net_bridge *br, in br_cfm_mep_delete() argument
602 mep = br_mep_find(br, instance); in br_cfm_mep_delete()
609 mep_delete_implementation(br, mep); in br_cfm_mep_delete()
614 int br_cfm_mep_config_set(struct net_bridge *br, in br_cfm_mep_config_set() argument
623 mep = br_mep_find(br, instance); in br_cfm_mep_config_set()
635 int br_cfm_cc_config_set(struct net_bridge *br, in br_cfm_cc_config_set() argument
645 mep = br_mep_find(br, instance); 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() argument
682 mep = br_mep_find(br, instance); in br_cfm_cc_peer_mep_add()
712 int br_cfm_cc_peer_mep_remove(struct net_bridge *br, const u32 instance, in br_cfm_cc_peer_mep_remove() argument
721 mep = br_mep_find(br, instance); in br_cfm_cc_peer_mep_remove()
743 int br_cfm_cc_rdi_set(struct net_bridge *br, const u32 instance, in br_cfm_cc_rdi_set() argument
750 mep = br_mep_find(br, instance); in br_cfm_cc_rdi_set()
762 int br_cfm_cc_ccm_tx(struct net_bridge *br, const u32 instance, in br_cfm_cc_ccm_tx() argument
770 mep = br_mep_find(br, instance); in br_cfm_cc_ccm_tx()
820 int br_cfm_mep_count(struct net_bridge *br, u32 *count) in br_cfm_mep_count() argument
827 hlist_for_each_entry_rcu(mep, &br->mep_list, head) in br_cfm_mep_count()
834 int br_cfm_peer_mep_count(struct net_bridge *br, u32 *count) in br_cfm_peer_mep_count() argument
842 hlist_for_each_entry_rcu(mep, &br->mep_list, head) in br_cfm_peer_mep_count()
850 bool br_cfm_created(struct net_bridge *br) in br_cfm_created() argument
852 return !hlist_empty(&br->mep_list); in br_cfm_created()
857 void br_cfm_port_del(struct net_bridge *br, struct net_bridge_port *port) in br_cfm_port_del() argument
864 hlist_for_each_entry_safe(mep, n_store, &br->mep_list, head) in br_cfm_port_del()
866 mep_delete_implementation(br, mep); in br_cfm_port_del()