Lines Matching +full:3 +full:br
102 struct net_bridge *br; member
138 struct net_bridge *br; member
181 BR_VLFLAG_GLOBAL_MCAST_ENABLED = BIT(3),
195 * @br: if MASTER flag set, this points to a bridge struct
222 struct net_bridge *br; member
312 #define MDB_PG_FLAGS_STAR_EXCL BIT(3)
320 #define BR_SGRP_F_USER_ADDED BIT(3)
336 struct net_bridge *br; member
370 struct net_bridge *br; member
383 struct net_bridge *br; member
628 #define br_printk(level, br, format, args...) \ argument
629 printk(level "%s: " format, (br)->dev->name, ##args)
640 #define br_debug(br, format, args...) \ argument
641 pr_debug("%s: " format, (br)->dev->name, ##args)
644 static inline int br_is_root_bridge(const struct net_bridge *br) in br_is_root_bridge() argument
646 return !memcmp(&br->bridge_id, &br->designated_root, 8); in br_is_root_bridge()
752 static inline int br_opt_get(const struct net_bridge *br, in br_opt_get() argument
755 return test_bit(opt, &br->options); in br_opt_get()
758 int br_boolopt_toggle(struct net_bridge *br, enum br_boolopt_id opt, bool on,
760 int br_boolopt_get(const struct net_bridge *br, enum br_boolopt_id opt);
761 int br_boolopt_multi_toggle(struct net_bridge *br,
764 void br_boolopt_multi_get(const struct net_bridge *br,
766 void br_opt_toggle(struct net_bridge *br, enum net_bridge_opts opt, bool on);
831 int br_fdb_hash_init(struct net_bridge *br);
832 void br_fdb_hash_fini(struct net_bridge *br);
833 void br_fdb_flush(struct net_bridge *br,
835 void br_fdb_find_delete_local(struct net_bridge *br,
839 void br_fdb_change_mac_address(struct net_bridge *br, const u8 *newaddr);
841 void br_fdb_delete_by_port(struct net_bridge *br,
843 struct net_bridge_fdb_entry *br_fdb_find_rcu(struct net_bridge *br,
847 int br_fdb_fillbuf(struct net_bridge *br, void *buf, unsigned long count,
849 int br_fdb_add_local(struct net_bridge *br, struct net_bridge_port *source,
851 void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source,
867 int br_fdb_sync_static(struct net_bridge *br, struct net_bridge_port *p);
868 void br_fdb_unsync_static(struct net_bridge *br, struct net_bridge_port *p);
869 int br_fdb_external_learn_add(struct net_bridge *br, struct net_bridge_port *p,
872 int br_fdb_external_learn_del(struct net_bridge *br, struct net_bridge_port *p,
875 void br_fdb_offloaded_set(struct net_bridge *br, struct net_bridge_port *p,
888 void br_flood(struct net_bridge *br, struct sk_buff *skb,
904 int br_add_if(struct net_bridge *br, struct net_device *dev,
906 int br_del_if(struct net_bridge *br, struct net_device *dev);
907 void br_mtu_auto_adjust(struct net_bridge *br);
908 netdev_features_t br_features_recompute(struct net_bridge *br,
911 void br_manage_promisc(struct net_bridge *br);
925 void br_add_frame(struct net_bridge *br, struct br_frame_type *ft);
926 void br_del_frame(struct net_bridge *br, struct br_frame_type *ft);
952 int br_ioctl_stub(struct net *net, struct net_bridge *br, unsigned int cmd,
968 void br_multicast_init(struct net_bridge *br);
969 void br_multicast_join_snoopers(struct net_bridge *br);
970 void br_multicast_leave_snoopers(struct net_bridge *br);
971 void br_multicast_open(struct net_bridge *br);
972 void br_multicast_stop(struct net_bridge *br);
973 void br_multicast_dev_del(struct net_bridge *br);
981 int br_multicast_toggle(struct net_bridge *br, unsigned long val,
991 br_mdb_ip_get(struct net_bridge *br, struct br_ip *dst);
993 br_multicast_new_group(struct net_bridge *br, struct br_ip *group);
1002 int br_mdb_hash_init(struct net_bridge *br);
1003 void br_mdb_hash_fini(struct net_bridge *br);
1011 void br_multicast_count(struct net_bridge *br,
1014 int br_multicast_init_stats(struct net_bridge *br);
1015 void br_multicast_uninit_stats(struct net_bridge *br);
1016 void br_multicast_get_stats(const struct net_bridge *br,
1047 void br_multicast_ctx_init(struct net_bridge *br,
1056 int br_multicast_toggle_vlan_snooping(struct net_bridge *br, bool on,
1077 #define mlock_dereference(X, br) \ argument
1078 rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock))
1155 if (is_ipv6 && !br_opt_get(brmctx->br, BROPT_HAS_IPV6_ADDR)) in __br_multicast_querier_exists()
1205 return !!(brmctx->multicast_igmp_version == 3); in br_multicast_should_handle_mode()
1247 return &pmctx->port->br->multicast_ctx; in br_multicast_port_ctx_get_global()
1256 (!br_opt_get(brmctx->br, BROPT_MCAST_VLAN_SNOOPING_ENABLED) || in br_multicast_ctx_vlan_global_disabled()
1341 vlan_snooping_enabled = !!br_opt_get(brmctx->br, in br_multicast_ctx_matches_vlan_snooping()
1380 static inline void br_multicast_init(struct net_bridge *br) in br_multicast_init() argument
1384 static inline void br_multicast_join_snoopers(struct net_bridge *br) in br_multicast_join_snoopers() argument
1388 static inline void br_multicast_leave_snoopers(struct net_bridge *br) in br_multicast_leave_snoopers() argument
1392 static inline void br_multicast_open(struct net_bridge *br) in br_multicast_open() argument
1396 static inline void br_multicast_stop(struct net_bridge *br) in br_multicast_stop() argument
1400 static inline void br_multicast_dev_del(struct net_bridge *br) in br_multicast_dev_del() argument
1455 static inline int br_mdb_hash_init(struct net_bridge *br) in br_mdb_hash_init() argument
1460 static inline void br_mdb_hash_fini(struct net_bridge *br) in br_mdb_hash_fini() argument
1464 static inline void br_multicast_count(struct net_bridge *br, in br_multicast_count() argument
1471 static inline int br_multicast_init_stats(struct net_bridge *br) in br_multicast_init_stats() argument
1476 static inline void br_multicast_uninit_stats(struct net_bridge *br) in br_multicast_uninit_stats() argument
1485 static inline void br_multicast_ctx_init(struct net_bridge *br, in br_multicast_ctx_init() argument
1510 static inline int br_multicast_toggle_vlan_snooping(struct net_bridge *br, in br_multicast_toggle_vlan_snooping() argument
1533 bool br_allowed_ingress(const struct net_bridge *br,
1540 struct sk_buff *br_handle_vlan(struct net_bridge *br,
1544 int br_vlan_add(struct net_bridge *br, u16 vid, u16 flags,
1546 int br_vlan_delete(struct net_bridge *br, u16 vid);
1547 void br_vlan_flush(struct net_bridge *br);
1549 void br_recalculate_fwd_mask(struct net_bridge *br);
1550 int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val,
1552 int __br_vlan_set_proto(struct net_bridge *br, __be16 proto,
1554 int br_vlan_set_proto(struct net_bridge *br, unsigned long val,
1556 int br_vlan_set_stats(struct net_bridge *br, unsigned long val);
1557 int br_vlan_set_stats_per_port(struct net_bridge *br, unsigned long val);
1558 int br_vlan_init(struct net_bridge *br);
1559 int br_vlan_set_default_pvid(struct net_bridge *br, unsigned long val,
1561 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid,
1576 void br_vlan_notify(const struct net_bridge *br,
1583 void br_vlan_fill_forward_path_pvid(struct net_bridge *br,
1586 int br_vlan_fill_forward_path_mode(struct net_bridge *br,
1591 const struct net_bridge *br) in br_vlan_group() argument
1593 return rtnl_dereference(br->vlgrp); in br_vlan_group()
1603 const struct net_bridge *br) in br_vlan_group_rcu() argument
1605 return rcu_dereference(br->vlgrp); in br_vlan_group_rcu()
1645 static inline bool br_allowed_ingress(const struct net_bridge *br, in br_allowed_ingress() argument
1668 static inline struct sk_buff *br_handle_vlan(struct net_bridge *br, in br_handle_vlan() argument
1676 static inline int br_vlan_add(struct net_bridge *br, u16 vid, u16 flags, in br_vlan_add() argument
1683 static inline int br_vlan_delete(struct net_bridge *br, u16 vid) in br_vlan_delete() argument
1688 static inline void br_vlan_flush(struct net_bridge *br) in br_vlan_flush() argument
1692 static inline void br_recalculate_fwd_mask(struct net_bridge *br) in br_recalculate_fwd_mask() argument
1696 static inline int br_vlan_init(struct net_bridge *br) in br_vlan_init() argument
1739 static inline int br_vlan_filter_toggle(struct net_bridge *br, in br_vlan_filter_toggle() argument
1752 static inline void br_vlan_fill_forward_path_pvid(struct net_bridge *br, in br_vlan_fill_forward_path_pvid() argument
1758 static inline int br_vlan_fill_forward_path_mode(struct net_bridge *br, in br_vlan_fill_forward_path_mode() argument
1766 const struct net_bridge *br) in br_vlan_group() argument
1778 const struct net_bridge *br) in br_vlan_group_rcu() argument
1814 static inline void br_vlan_notify(const struct net_bridge *br, in br_vlan_notify() argument
1841 int br_vlan_process_options(const struct net_bridge *br,
1895 static inline bool br_mst_is_enabled(struct net_bridge *br) in br_mst_is_enabled() argument
1898 br_opt_get(br, BROPT_MST_ENABLED); in br_mst_is_enabled()
1905 int br_mst_set_enabled(struct net_bridge *br, bool on,
1913 static inline bool br_mst_is_enabled(struct net_bridge *br) in br_mst_is_enabled() argument
1924 static inline int br_mst_set_enabled(struct net_bridge *br, bool on, in br_mst_set_enabled() argument
1967 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no);
1971 void __br_set_forward_delay(struct net_bridge *br, unsigned long t);
1972 int br_set_forward_delay(struct net_bridge *br, unsigned long x);
1973 int br_set_hello_time(struct net_bridge *br, unsigned long x);
1974 int br_set_max_age(struct net_bridge *br, unsigned long x);
1976 int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time);
1980 void br_stp_enable_bridge(struct net_bridge *br);
1981 void br_stp_disable_bridge(struct net_bridge *br);
1982 int br_stp_set_enabled(struct net_bridge *br, unsigned long val,
1986 bool br_stp_recalculate_bridge_id(struct net_bridge *br);
1987 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *a);
1988 void br_stp_set_bridge_priority(struct net_bridge *br, u16 newprio);
1999 void br_stp_timer_init(struct net_bridge *br);
2003 /* br.c */
2010 int br_mrp_parse(struct net_bridge *br, struct net_bridge_port *p,
2012 bool br_mrp_enabled(struct net_bridge *br);
2013 void br_mrp_port_del(struct net_bridge *br, struct net_bridge_port *p);
2014 int br_mrp_fill_info(struct sk_buff *skb, struct net_bridge *br);
2016 static inline int br_mrp_parse(struct net_bridge *br, struct net_bridge_port *p, in br_mrp_parse() argument
2023 static inline bool br_mrp_enabled(struct net_bridge *br) in br_mrp_enabled() argument
2028 static inline void br_mrp_port_del(struct net_bridge *br, in br_mrp_port_del() argument
2033 static inline int br_mrp_fill_info(struct sk_buff *skb, struct net_bridge *br) in br_mrp_fill_info() argument
2042 int br_cfm_parse(struct net_bridge *br, struct net_bridge_port *p,
2044 bool br_cfm_created(struct net_bridge *br);
2045 void br_cfm_port_del(struct net_bridge *br, struct net_bridge_port *p);
2046 int br_cfm_config_fill_info(struct sk_buff *skb, struct net_bridge *br);
2048 struct net_bridge *br,
2050 int br_cfm_mep_count(struct net_bridge *br, u32 *count);
2051 int br_cfm_peer_mep_count(struct net_bridge *br, u32 *count);
2053 static inline int br_cfm_parse(struct net_bridge *br, struct net_bridge_port *p, in br_cfm_parse() argument
2060 static inline bool br_cfm_created(struct net_bridge *br) in br_cfm_created() argument
2065 static inline void br_cfm_port_del(struct net_bridge *br, in br_cfm_port_del() argument
2070 static inline int br_cfm_config_fill_info(struct sk_buff *skb, struct net_bridge *br) in br_cfm_config_fill_info() argument
2076 struct net_bridge *br, in br_cfm_status_fill_info() argument
2082 static inline int br_cfm_mep_count(struct net_bridge *br, u32 *count) in br_cfm_mep_count() argument
2088 static inline int br_cfm_peer_mep_count(struct net_bridge *br, u32 *count) in br_cfm_peer_mep_count() argument
2099 void br_ifinfo_notify(int event, const struct net_bridge *br,
2101 void br_info_notify(int event, const struct net_bridge *br,
2108 int br_process_vlan_info(struct net_bridge *br,
2168 void br_switchdev_fdb_notify(struct net_bridge *br,
2177 void br_switchdev_init(struct net_bridge *br);
2265 br_switchdev_fdb_notify(struct net_bridge *br, in br_switchdev_fdb_notify() argument
2281 static inline void br_switchdev_init(struct net_bridge *br) in br_switchdev_init() argument
2288 void br_recalculate_neigh_suppress_enabled(struct net_bridge *br);
2289 void br_do_proxy_suppress_arp(struct sk_buff *skb, struct net_bridge *br,
2291 void br_do_suppress_nd(struct sk_buff *skb, struct net_bridge *br,