/linux-6.1.9/net/bridge/ |
D | br_sysfs_if.c | 26 ssize_t (*show)(struct net_bridge_port *, char *); 27 int (*store)(struct net_bridge_port *, unsigned long); 28 int (*store_raw)(struct net_bridge_port *, char *); 48 static ssize_t show_##_name(struct net_bridge_port *p, char *buf) \ 52 static int store_##_name(struct net_bridge_port *p, unsigned long v) \ 59 static int store_flag(struct net_bridge_port *p, unsigned long v, in store_flag() 84 static ssize_t show_path_cost(struct net_bridge_port *p, char *buf) in show_path_cost() 92 static ssize_t show_priority(struct net_bridge_port *p, char *buf) in show_priority() 100 static ssize_t show_designated_root(struct net_bridge_port *p, char *buf) in show_designated_root() 106 static ssize_t show_designated_bridge(struct net_bridge_port *p, char *buf) in show_designated_bridge() [all …]
|
D | br_private.h | 100 struct net_bridge_port *port; 200 struct net_bridge_port *port; 264 struct net_bridge_port *dst; 316 struct net_bridge_port *port; 356 struct net_bridge_port { struct 366 struct net_bridge_port __rcu *backup_port; argument 419 #define kobj_to_brport(obj) container_of(obj, struct net_bridge_port, kobj) argument 424 static inline struct net_bridge_port *br_port_get_rcu(const struct net_device *dev) in br_port_get_rcu() 429 static inline struct net_bridge_port *br_port_get_rtnl(const struct net_device *dev) in br_port_get_rtnl() 435 static inline struct net_bridge_port *br_port_get_rtnl_rcu(const struct net_device *dev) in br_port_get_rtnl_rcu() [all …]
|
D | br_private_tunnel.h | 22 const struct net_bridge_port *p, 35 int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid); 36 int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid, 38 void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port); 42 struct net_bridge_port *p, 48 int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd, 56 static inline int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, in nbp_vlan_tunnel_info_delete() 62 static inline int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, in nbp_vlan_tunnel_info_add() 68 static inline void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port) in nbp_vlan_tunnel_info_flush() 78 struct net_bridge_port *p, in br_handle_ingress_vlan_tunnel()
|
D | br_if.c | 73 void br_port_carrier_check(struct net_bridge_port *p, bool *notified) in br_port_carrier_check() 101 static void br_port_set_promisc(struct net_bridge_port *p) in br_port_set_promisc() 116 static void br_port_clear_promisc(struct net_bridge_port *p) in br_port_clear_promisc() 146 struct net_bridge_port *p; in br_manage_promisc() 178 int nbp_backup_change(struct net_bridge_port *p, in nbp_backup_change() 181 struct net_bridge_port *old_backup = rtnl_dereference(p->backup_port); in nbp_backup_change() 182 struct net_bridge_port *backup_p = NULL; in nbp_backup_change() 212 static void nbp_backup_clear(struct net_bridge_port *p) in nbp_backup_clear() 216 struct net_bridge_port *cur_p; in nbp_backup_clear() 219 struct net_bridge_port *backup_p; in nbp_backup_clear() [all …]
|
D | br_private_stp.h | 42 static inline int br_is_designated_port(const struct net_bridge_port *p) in br_is_designated_port() 54 void br_received_config_bpdu(struct net_bridge_port *p, 56 void br_received_tcn_bpdu(struct net_bridge_port *p); 57 void br_transmit_config(struct net_bridge_port *p); 63 void br_send_config_bpdu(struct net_bridge_port *, struct br_config_bpdu *); 64 void br_send_tcn_bpdu(struct net_bridge_port *);
|
D | br_stp.c | 29 void br_set_state(struct net_bridge_port *p, unsigned int state) in br_set_state() 75 struct net_bridge_port *p; in br_port_get_stp_state() 88 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() 90 struct net_bridge_port *p; in br_get_port() 102 static int br_should_become_root_port(const struct net_bridge_port *p, in br_should_become_root_port() 106 struct net_bridge_port *rp; in br_should_become_root_port() 153 struct net_bridge_port *p) in br_root_port_block() 169 struct net_bridge_port *p; in br_root_selection() 210 void br_transmit_config(struct net_bridge_port *p) in br_transmit_config() 231 struct net_bridge_port *root in br_transmit_config() [all …]
|
D | br_forward.c | 21 static inline int should_deliver(const struct net_bridge_port *p, in should_deliver() 73 static void __br_forward(const struct net_bridge_port *to, in __br_forward() 120 static int deliver_clone(const struct net_bridge_port *prev, in deliver_clone() 144 void br_forward(const struct net_bridge_port *to, in br_forward() 152 struct net_bridge_port *backup_port; in br_forward() 174 static struct net_bridge_port *maybe_deliver( in maybe_deliver() 175 struct net_bridge_port *prev, struct net_bridge_port *p, in maybe_deliver() 202 struct net_bridge_port *prev = NULL; in br_flood() 203 struct net_bridge_port *p; in br_flood() 251 static void maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb, in maybe_deliver_addr() [all …]
|
D | br_mrp.c | 9 static int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb); 16 static bool br_mrp_is_ring_port(struct net_bridge_port *p_port, in br_mrp_is_ring_port() 17 struct net_bridge_port *s_port, in br_mrp_is_ring_port() 18 struct net_bridge_port *port) in br_mrp_is_ring_port() 27 static bool br_mrp_is_in_port(struct net_bridge_port *i_port, in br_mrp_is_in_port() 28 struct net_bridge_port *port) in br_mrp_is_in_port() 36 static struct net_bridge_port *br_mrp_get_port(struct net_bridge *br, in br_mrp_get_port() 39 struct net_bridge_port *res = NULL; in br_mrp_get_port() 40 struct net_bridge_port *port; in br_mrp_get_port() 90 struct net_bridge_port *p; in br_mrp_unique_ifindex() [all …]
|
D | br_private_mrp.h | 15 struct net_bridge_port __rcu *p_port; 16 struct net_bridge_port __rcu *s_port; 17 struct net_bridge_port __rcu *i_port; 68 int br_mrp_set_port_state(struct net_bridge_port *p, 70 int br_mrp_set_port_role(struct net_bridge_port *p, 93 int br_mrp_port_switchdev_set_state(struct net_bridge_port *p, u32 state); 94 int br_mrp_port_switchdev_set_role(struct net_bridge_port *p,
|
D | br_switchdev.c | 14 static bool nbp_switchdev_can_offload_tx_fwd(const struct net_bridge_port *p, in nbp_switchdev_can_offload_tx_fwd() 38 void nbp_switchdev_frame_mark_tx_fwd_offload(const struct net_bridge_port *p, in nbp_switchdev_frame_mark_tx_fwd_offload() 50 void nbp_switchdev_frame_mark_tx_fwd_to_hwdom(const struct net_bridge_port *p, in nbp_switchdev_frame_mark_tx_fwd_to_hwdom() 57 void nbp_switchdev_frame_mark(const struct net_bridge_port *p, in nbp_switchdev_frame_mark() 64 bool nbp_switchdev_allowed_egress(const struct net_bridge_port *p, in nbp_switchdev_allowed_egress() 78 int br_switchdev_set_port_flag(struct net_bridge_port *p, in br_switchdev_set_port_flag() 132 const struct net_bridge_port *p = READ_ONCE(fdb->dst); in br_switchdev_fdb_populate() 188 static int nbp_switchdev_hwdom_set(struct net_bridge_port *joining) in nbp_switchdev_hwdom_set() 191 struct net_bridge_port *p; in nbp_switchdev_hwdom_set() 211 static void nbp_switchdev_hwdom_put(struct net_bridge_port *leaving) in nbp_switchdev_hwdom_put() [all …]
|
D | br_stp_if.c | 33 void br_init_port(struct net_bridge_port *p) in br_init_port() 51 struct net_bridge_port *p; in br_stp_enable_bridge() 71 struct net_bridge_port *p; in br_stp_disable_bridge() 91 void br_stp_enable_port(struct net_bridge_port *p) in br_stp_enable_port() 99 void br_stp_disable_port(struct net_bridge_port *p) in br_stp_disable_port() 227 struct net_bridge_port *p; in br_stp_change_bridge_id() 261 struct net_bridge_port *p; in br_stp_recalculate_bridge_id() 284 struct net_bridge_port *p; in br_stp_set_bridge_priority() 309 int br_stp_set_port_priority(struct net_bridge_port *p, unsigned long newprio) in br_stp_set_port_priority() 332 int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost) in br_stp_set_path_cost()
|
D | br_private_mcast_eht.h | 61 int br_multicast_eht_set_hosts_limit(struct net_bridge_port *p, 74 const struct net_bridge_port *p = pg->key.port; in br_multicast_eht_hosts_over_limit() 81 struct net_bridge_port *p = pg->key.port; in br_multicast_eht_hosts_inc() 88 struct net_bridge_port *p = pg->key.port; in br_multicast_eht_hosts_dec()
|
D | br_fdb.c | 103 const struct net_bridge_port *dst = READ_ONCE(fdb->dst); in fdb_fill_info() 277 struct net_bridge_port *p; in fdb_add_hw_addr() 304 struct net_bridge_port *p; in fdb_del_hw_addr() 331 const struct net_bridge_port *p, in fdb_delete_local() 337 struct net_bridge_port *op; in fdb_delete_local() 365 const struct net_bridge_port *p, in br_fdb_find_delete_local() 379 struct net_bridge_port *source, in fdb_create() 408 static int fdb_add_local(struct net_bridge *br, struct net_bridge_port *source, in fdb_add_local() 438 void br_fdb_changeaddr(struct net_bridge_port *p, const unsigned char *newaddr) in br_fdb_changeaddr() 565 const struct net_bridge_port *dst = READ_ONCE(f->dst); in __fdb_flush_matches() [all …]
|
D | br_stp_timer.c | 19 struct net_bridge_port *p; in br_is_designated_for_some_port() 48 struct net_bridge_port *p = from_timer(p, t, message_age_timer); in br_message_age_timer_expired() 81 struct net_bridge_port *p = from_timer(p, t, forward_delay_timer); in br_forward_delay_timer_expired() 130 struct net_bridge_port *p = from_timer(p, t, hold_timer); in br_hold_timer_expired() 149 void br_stp_port_timer_init(struct net_bridge_port *p) in br_stp_port_timer_init()
|
D | br_mst.c | 53 const struct net_bridge_port *p = NULL; in br_mst_get_state() 76 static void br_mst_vlan_set_state(struct net_bridge_port *p, struct net_bridge_vlan *v, in br_mst_vlan_set_state() 90 int br_mst_set_state(struct net_bridge_port *p, u16 msti, u8 state, in br_mst_set_state() 160 struct net_bridge_port *p; in br_mst_vlan_set_msti() 203 struct net_bridge_port *p; in br_mst_set_enabled() 295 static int br_mst_process_one(struct net_bridge_port *p, in br_mst_process_one() 325 int br_mst_process(struct net_bridge_port *p, const struct nlattr *mst_attr, in br_mst_process()
|
D | br_vlan_tunnel.c | 97 int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid, in nbp_vlan_tunnel_info_add() 116 int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid) in nbp_vlan_tunnel_info_delete() 141 void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port) in nbp_vlan_tunnel_info_flush() 162 struct net_bridge_port *p, in br_handle_ingress_vlan_tunnel()
|
D | br_vlan.c | 11 static void nbp_vlan_set_vlan_dev_state(struct net_bridge_port *p, u16 vid); 262 struct net_bridge_port *p = NULL; in __vlan_add() 387 struct net_bridge_port *p = NULL; in __vlan_del() 440 const struct net_bridge_port *p, in __vlan_flush() 474 const struct net_bridge_port *p, in br_handle_vlan() 679 bool br_should_learn(struct net_bridge_port *p, struct sk_buff *skb, u16 *vid) in br_should_learn() 946 struct net_bridge_port *p; in __br_vlan_set_proto() 1034 struct net_bridge_port *p; in br_vlan_set_stats_per_port() 1073 struct net_bridge_port *p; in br_vlan_disable_default_pvid() 1098 struct net_bridge_port *p; in __br_vlan_set_default_pvid() [all …]
|
D | br_device.c | 264 struct net_bridge_port *p; in br_get_link_ksettings() 307 struct net_bridge_port *p; in br_netpoll_cleanup() 313 static int __br_netpoll_enable(struct net_bridge_port *p) in __br_netpoll_enable() 332 int br_netpoll_enable(struct net_bridge_port *p) in br_netpoll_enable() 343 struct net_bridge_port *p; in br_netpoll_setup() 362 void br_netpoll_disable(struct net_bridge_port *p) in br_netpoll_disable() 396 struct net_bridge_port *dst; in br_fill_forward_path()
|
D | br_cfm.c | 44 static struct net_bridge_port *br_mep_get_port(struct net_bridge *br, in br_mep_get_port() 47 struct net_bridge_port *port; in br_mep_get_port() 141 static void br_cfm_notify(int event, const struct net_bridge_port *port) in br_cfm_notify() 166 struct net_bridge_port *b_port; in ccm_frame_build() 298 struct net_bridge_port *b_port; in ccm_rx_work_expired() 370 static int br_cfm_frame_rx(struct net_bridge_port *port, struct sk_buff *skb) in br_cfm_frame_rx() 502 struct net_bridge_port *p; in br_cfm_mep_create() 857 void br_cfm_port_del(struct net_bridge *br, struct net_bridge_port *port) in br_cfm_port_del()
|
D | br_stp_bpdu.c | 35 static void br_send_bpdu(struct net_bridge_port *p, in br_send_bpdu() 79 void br_send_config_bpdu(struct net_bridge_port *p, struct br_config_bpdu *bpdu) in br_send_config_bpdu() 126 void br_send_tcn_bpdu(struct net_bridge_port *p) in br_send_tcn_bpdu() 150 struct net_bridge_port *p; in br_stp_rcv()
|
D | br_mrp_netlink.c | 75 static int br_mrp_port_state_parse(struct net_bridge_port *p, in br_mrp_port_state_parse() 104 static int br_mrp_port_role_parse(struct net_bridge_port *p, in br_mrp_port_role_parse() 356 int br_mrp_parse(struct net_bridge *br, struct net_bridge_port *p, in br_mrp_parse() 457 struct net_bridge_port *p; in br_mrp_fill_info() 531 struct net_bridge_port *p; in br_mrp_ring_port_open() 553 struct net_bridge_port *p; in br_mrp_in_port_open()
|
D | br_netlink.c | 97 struct net_bridge_port *p = NULL; in br_get_link_af_size_filtered() 229 const struct net_bridge_port *p) in br_port_fill_attrs() 232 struct net_bridge_port *backup_p; in br_port_fill_attrs() 437 const struct net_bridge_port *port, in br_fill_ifinfo() 608 const struct net_bridge_port *port, u32 filter) in br_info_notify() 649 const struct net_bridge_port *port) in br_ifinfo_notify() 662 struct net_bridge_port *port = br_port_get_rtnl(dev); in br_getlink() 675 static int br_vlan_info(struct net_bridge *br, struct net_bridge_port *p, in br_vlan_info() 717 struct net_bridge_port *p, int cmd, in br_process_vlan_info() 787 struct net_bridge_port *p, in br_afspec() [all …]
|
D | br_arp_nd_proxy.c | 29 struct net_bridge_port *p; in br_recalculate_neigh_suppress_enabled() 43 static void br_arp_send(struct net_bridge *br, struct net_bridge_port *p, in br_arp_send() 126 u16 vid, struct net_bridge_port *p) in br_do_proxy_suppress_arp() 249 static void br_nd_send(struct net_bridge *br, struct net_bridge_port *p, in br_nd_send() 400 u16 vid, struct net_bridge_port *p, struct nd_msg *msg) in br_do_suppress_nd()
|
D | br_input.c | 76 struct net_bridge_port *p = br_port_get_rcu(skb->dev); in br_handle_frame_finish() 211 struct net_bridge_port *p = br_port_get_rcu(skb->dev); in __br_handle_local_finish() 287 static int br_process_frame_type(struct net_bridge_port *p, in br_process_frame_type() 305 struct net_bridge_port *p; in br_handle_frame()
|
D | br_netlink_tunnel.c | 196 int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd, in br_vlan_tunnel_info() 254 static void __vlan_tunnel_handle_range(const struct net_bridge_port *p, in __vlan_tunnel_handle_range() 284 const struct net_bridge_port *p, int cmd, in br_process_vlan_tunnel_info()
|