/linux-6.6.21/net/bridge/ |
D | br_private.h | 103 struct net_bridge_port *p; 118 struct net_bridge_port *port; 221 struct net_bridge_port *port; 286 struct net_bridge_port *dst; 339 struct net_bridge_port *port; 379 struct net_bridge_port { struct 389 struct net_bridge_port __rcu *backup_port; argument 443 #define kobj_to_brport(obj) container_of(obj, struct net_bridge_port, kobj) argument 448 static inline struct net_bridge_port *br_port_get_rcu(const struct net_device *dev) in br_port_get_rcu() 453 static inline struct net_bridge_port *br_port_get_rtnl(const struct net_device *dev) in br_port_get_rtnl() [all …]
|
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_tunnel.h | 22 const struct net_bridge_port *p, 32 int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd, 39 int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid); 40 int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid, 42 void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port); 46 struct net_bridge_port *p, 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() 179 int nbp_backup_change(struct net_bridge_port *p, in nbp_backup_change() 182 struct net_bridge_port *old_backup = rtnl_dereference(p->backup_port); in nbp_backup_change() 183 struct net_bridge_port *backup_p = NULL; in nbp_backup_change() 213 static void nbp_backup_clear(struct net_bridge_port *p) in nbp_backup_clear() 217 struct net_bridge_port *cur_p; in nbp_backup_clear() 220 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() 175 static struct net_bridge_port *maybe_deliver( in maybe_deliver() 176 struct net_bridge_port *prev, struct net_bridge_port *p, in maybe_deliver() 204 struct net_bridge_port *prev = NULL; in br_flood() 205 struct net_bridge_port *p; in br_flood() 256 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() 130 const struct net_bridge_port *p = READ_ONCE(fdb->dst); in br_switchdev_fdb_populate() 201 static int nbp_switchdev_hwdom_set(struct net_bridge_port *joining) in nbp_switchdev_hwdom_set() 204 struct net_bridge_port *p; in nbp_switchdev_hwdom_set() 224 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() 284 struct net_bridge_port *p; in fdb_add_hw_addr() 311 struct net_bridge_port *p; in fdb_del_hw_addr() 338 const struct net_bridge_port *p, in fdb_delete_local() 344 struct net_bridge_port *op; in fdb_delete_local() 372 const struct net_bridge_port *p, in br_fdb_find_delete_local() 386 struct net_bridge_port *source, in fdb_create() 415 static int fdb_add_local(struct net_bridge *br, struct net_bridge_port *source, in fdb_add_local() 445 void br_fdb_changeaddr(struct net_bridge_port *p, const unsigned char *newaddr) in br_fdb_changeaddr() 572 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 | 265 struct net_bridge_port *p; in br_get_link_ksettings() 308 struct net_bridge_port *p; in br_netpoll_cleanup() 314 static int __br_netpoll_enable(struct net_bridge_port *p) in __br_netpoll_enable() 333 int br_netpoll_enable(struct net_bridge_port *p) in br_netpoll_enable() 344 struct net_bridge_port *p; in br_netpoll_setup() 363 void br_netpoll_disable(struct net_bridge_port *p) in br_netpoll_disable() 397 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_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() 487 bool br_is_neigh_suppress_enabled(const struct net_bridge_port *p, u16 vid) in br_is_neigh_suppress_enabled()
|
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() 234 const struct net_bridge_port *p) in br_port_fill_attrs() 237 struct net_bridge_port *backup_p; in br_port_fill_attrs() 453 const struct net_bridge_port *port, in br_fill_ifinfo() 624 const struct net_bridge_port *port, u32 filter) in br_info_notify() 665 const struct net_bridge_port *port) in br_ifinfo_notify() 678 struct net_bridge_port *port = br_port_get_rtnl(dev); in br_getlink() 691 static int br_vlan_info(struct net_bridge *br, struct net_bridge_port *p, in br_vlan_info() 733 struct net_bridge_port *p, int cmd, in br_process_vlan_info() 803 struct net_bridge_port *p, in br_afspec() [all …]
|
D | br_input.c | 76 struct net_bridge_port *p = br_port_get_rcu(skb->dev); in br_handle_frame_finish() 228 struct net_bridge_port *p = br_port_get_rcu(skb->dev); in __br_handle_local_finish() 304 static int br_process_frame_type(struct net_bridge_port *p, in br_process_frame_type() 322 struct net_bridge_port *p; in br_handle_frame()
|
D | br_netlink_tunnel.c | 199 int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd, in br_vlan_tunnel_info() 257 static void __vlan_tunnel_handle_range(const struct net_bridge_port *p, in __vlan_tunnel_handle_range() 287 const struct net_bridge_port *p, int cmd, in br_process_vlan_tunnel_info()
|