Home
last modified time | relevance | path

Searched refs:net_bridge_port (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/net/bridge/
Dbr_private.h80 struct net_bridge_port __rcu *port;
139 struct net_bridge_port *port;
182 struct net_bridge_port *dst;
205 struct net_bridge_port *port;
226 struct net_bridge_port { struct
235 struct net_bridge_port __rcu *backup_port; argument
283 #define kobj_to_brport(obj) container_of(obj, struct net_bridge_port, kobj) argument
288 static inline struct net_bridge_port *br_port_get_rcu(const struct net_device *dev) in br_port_get_rcu()
293 static inline struct net_bridge_port *br_port_get_rtnl(const struct net_device *dev) in br_port_get_rtnl()
299 static inline struct net_bridge_port *br_port_get_rtnl_rcu(const struct net_device *dev) in br_port_get_rtnl_rcu()
[all …]
Dbr_sysfs_if.c22 ssize_t (*show)(struct net_bridge_port *, char *);
23 int (*store)(struct net_bridge_port *, unsigned long);
24 int (*store_raw)(struct net_bridge_port *, char *);
44 static ssize_t show_##_name(struct net_bridge_port *p, char *buf) \
48 static int store_##_name(struct net_bridge_port *p, unsigned long v) \
55 static int store_flag(struct net_bridge_port *p, unsigned long v, in store_flag()
74 static ssize_t show_path_cost(struct net_bridge_port *p, char *buf) in show_path_cost()
82 static ssize_t show_priority(struct net_bridge_port *p, char *buf) in show_priority()
90 static ssize_t show_designated_root(struct net_bridge_port *p, char *buf) in show_designated_root()
96 static ssize_t show_designated_bridge(struct net_bridge_port *p, char *buf) in show_designated_bridge()
[all …]
Dbr_private_tunnel.h22 struct net_bridge_port *p,
35 int nbp_vlan_tunnel_info_delete(struct net_bridge_port *port, u16 vid);
36 int nbp_vlan_tunnel_info_add(struct net_bridge_port *port, u16 vid, u32 tun_id);
37 void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port);
41 struct net_bridge_port *p,
51 static inline int nbp_vlan_tunnel_info_delete(struct net_bridge_port *port, in nbp_vlan_tunnel_info_delete()
57 static inline int nbp_vlan_tunnel_info_add(struct net_bridge_port *port, in nbp_vlan_tunnel_info_add()
63 static inline void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port) in nbp_vlan_tunnel_info_flush()
73 struct net_bridge_port *p, in br_handle_ingress_vlan_tunnel()
Dbr_if.c64 void br_port_carrier_check(struct net_bridge_port *p, bool *notified) in br_port_carrier_check()
92 static void br_port_set_promisc(struct net_bridge_port *p) in br_port_set_promisc()
107 static void br_port_clear_promisc(struct net_bridge_port *p) in br_port_clear_promisc()
137 struct net_bridge_port *p; in br_manage_promisc()
169 int nbp_backup_change(struct net_bridge_port *p, in nbp_backup_change()
172 struct net_bridge_port *old_backup = rtnl_dereference(p->backup_port); in nbp_backup_change()
173 struct net_bridge_port *backup_p = NULL; in nbp_backup_change()
203 static void nbp_backup_clear(struct net_bridge_port *p) in nbp_backup_clear()
207 struct net_bridge_port *cur_p; in nbp_backup_clear()
210 struct net_bridge_port *backup_p; in nbp_backup_clear()
[all …]
Dbr_private_stp.h42 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 *);
Dbr_forward.c21 static inline int should_deliver(const struct net_bridge_port *p, in should_deliver()
72 static void __br_forward(const struct net_bridge_port *to, in __br_forward()
114 static int deliver_clone(const struct net_bridge_port *prev, in deliver_clone()
138 void br_forward(const struct net_bridge_port *to, in br_forward()
146 struct net_bridge_port *backup_port; in br_forward()
168 static struct net_bridge_port *maybe_deliver( in maybe_deliver()
169 struct net_bridge_port *prev, struct net_bridge_port *p, in maybe_deliver()
194 struct net_bridge_port *prev = NULL; in br_flood()
195 struct net_bridge_port *p; in br_flood()
243 static void maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb, in maybe_deliver_addr()
[all …]
Dbr_stp.c29 void br_set_state(struct net_bridge_port *p, unsigned int state) in br_set_state()
51 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port()
53 struct net_bridge_port *p; in br_get_port()
64 static int br_should_become_root_port(const struct net_bridge_port *p, in br_should_become_root_port()
68 struct net_bridge_port *rp; in br_should_become_root_port()
115 struct net_bridge_port *p) in br_root_port_block()
131 struct net_bridge_port *p; in br_root_selection()
172 void br_transmit_config(struct net_bridge_port *p) in br_transmit_config()
193 struct net_bridge_port *root in br_transmit_config()
213 static void br_record_config_information(struct net_bridge_port *p, in br_record_config_information()
[all …]
Dbr_stp_if.c33 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()
218 struct net_bridge_port *p; in br_stp_change_bridge_id()
252 struct net_bridge_port *p; in br_stp_recalculate_bridge_id()
275 struct net_bridge_port *p; in br_stp_set_bridge_priority()
300 int br_stp_set_port_priority(struct net_bridge_port *p, unsigned long newprio) in br_stp_set_port_priority()
323 int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost) in br_stp_set_path_cost()
Dbr_multicast.c47 struct net_bridge_port *port);
49 struct net_bridge_port *port,
54 static void __del_port_router(struct net_bridge_port *p);
57 struct net_bridge_port *port,
474 struct net_bridge_port *port, in br_multicast_new_port_group()
502 struct net_bridge_port *port, in br_port_group_equal()
536 struct net_bridge_port *port, in br_multicast_add_group()
587 struct net_bridge_port *port, in br_ip4_multicast_add_group()
607 struct net_bridge_port *port, in br_ip6_multicast_add_group()
628 struct net_bridge_port *port = in br_multicast_router_expired()
[all …]
Dbr_fdb.c35 static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
158 struct net_bridge_port *p; in fdb_add_hw_addr()
185 struct net_bridge_port *p; in fdb_del_hw_addr()
212 const struct net_bridge_port *p, in fdb_delete_local()
218 struct net_bridge_port *op; in fdb_delete_local()
246 const struct net_bridge_port *p, in br_fdb_find_delete_local()
258 void br_fdb_changeaddr(struct net_bridge_port *p, const unsigned char *newaddr) in br_fdb_changeaddr()
387 const struct net_bridge_port *p, in br_fdb_delete_by_port()
417 struct net_bridge_port *port; in br_fdb_test_addr()
484 struct net_bridge_port *source, in fdb_create()
[all …]
Dbr_switchdev.c13 struct net_bridge_port *p; in br_switchdev_mark_get()
24 int nbp_switchdev_mark_set(struct net_bridge_port *p) in nbp_switchdev_mark_set()
43 void nbp_switchdev_frame_mark(const struct net_bridge_port *p, in nbp_switchdev_frame_mark()
50 bool nbp_switchdev_allowed_egress(const struct net_bridge_port *p, in nbp_switchdev_allowed_egress()
61 int br_switchdev_set_port_flag(struct net_bridge_port *p, in br_switchdev_set_port_flag()
Dbr_stp_timer.c19 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()
Dbr_vlan_tunnel.c92 int nbp_vlan_tunnel_info_add(struct net_bridge_port *port, u16 vid, u32 tun_id) in nbp_vlan_tunnel_info_add()
110 int nbp_vlan_tunnel_info_delete(struct net_bridge_port *port, u16 vid) in nbp_vlan_tunnel_info_delete()
135 void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port) in nbp_vlan_tunnel_info_flush()
156 struct net_bridge_port *p, in br_handle_ingress_vlan_tunnel()
Dbr_vlan.c11 static void nbp_vlan_set_vlan_dev_state(struct net_bridge_port *p, u16 vid);
225 struct net_bridge_port *p = NULL; in __vlan_add()
333 struct net_bridge_port *p = NULL; in __vlan_del()
393 const struct net_bridge_port *p, in br_handle_vlan()
570 bool br_should_learn(struct net_bridge_port *p, struct sk_buff *skb, u16 *vid) in br_should_learn()
813 struct net_bridge_port *p; in __br_vlan_set_proto()
883 struct net_bridge_port *p; in br_vlan_set_stats_per_port()
922 struct net_bridge_port *p; in br_vlan_disable_default_pvid()
944 struct net_bridge_port *p; in __br_vlan_set_default_pvid()
1082 int nbp_vlan_init(struct net_bridge_port *p, struct netlink_ext_ack *extack) in nbp_vlan_init()
[all …]
Dbr_stp_bpdu.c35 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()
124 void br_send_tcn_bpdu(struct net_bridge_port *p) in br_send_tcn_bpdu()
146 struct net_bridge_port *p; in br_stp_rcv()
Dbr_mdb.c23 struct net_bridge_port *p; in br_rports_fill_info()
310 struct net_bridge_port *port;
320 struct net_bridge_port *port = data->port; in br_mdb_complete()
382 static void __br_mdb_notify(struct net_device *dev, struct net_bridge_port *p, in __br_mdb_notify()
440 void br_mdb_notify(struct net_device *dev, struct net_bridge_port *port, in br_mdb_notify()
501 void br_rtr_notify(struct net_device *dev, struct net_bridge_port *port, in br_rtr_notify()
602 static int br_mdb_add_group(struct net_bridge *br, struct net_bridge_port *port, in br_mdb_add_group()
656 struct net_bridge_port *p = NULL; in __br_mdb_add()
685 struct net_bridge_port *p = NULL; in br_mdb_add()
790 struct net_bridge_port *p = NULL; in br_mdb_del()
Dbr_device.c282 struct net_bridge_port *p; in br_netpoll_cleanup()
288 static int __br_netpoll_enable(struct net_bridge_port *p) in __br_netpoll_enable()
307 int br_netpoll_enable(struct net_bridge_port *p) in br_netpoll_enable()
318 struct net_bridge_port *p; in br_netpoll_setup()
337 void br_netpoll_disable(struct net_bridge_port *p) in br_netpoll_disable()
Dbr_netlink.c95 struct net_bridge_port *p = NULL; in br_get_link_af_size_filtered()
173 const struct net_bridge_port *p) in br_port_fill_attrs()
176 struct net_bridge_port *backup_p; in br_port_fill_attrs()
372 const struct net_bridge_port *port, in br_fill_ifinfo()
467 const struct net_bridge_port *port) in br_ifinfo_notify()
513 struct net_bridge_port *port = br_port_get_rtnl(dev); in br_getlink()
523 static int br_vlan_info(struct net_bridge *br, struct net_bridge_port *p, in br_vlan_info()
565 struct net_bridge_port *p, int cmd, in br_process_vlan_info()
613 struct net_bridge_port *p, in br_afspec()
681 static int br_set_port_state(struct net_bridge_port *p, u8 state) in br_set_port_state()
[all …]
Dbr_arp_nd_proxy.c29 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()
121 u16 vid, struct net_bridge_port *p) in br_do_proxy_suppress_arp()
242 static void br_nd_send(struct net_bridge *br, struct net_bridge_port *p, in br_nd_send()
384 u16 vid, struct net_bridge_port *p, struct nd_msg *msg) in br_do_suppress_nd()
Dbr_input.c72 struct net_bridge_port *p = br_port_get_rcu(skb->dev); in br_handle_frame_finish()
180 struct net_bridge_port *p = br_port_get_rcu(skb->dev); in __br_handle_local_finish()
258 struct net_bridge_port *p; in br_handle_frame()
Dbr_ioctl.c40 struct net_bridge_port *p; in get_port_ifindices()
112 struct net_bridge_port *p = NULL; in old_dev_ioctl()
211 struct net_bridge_port *pt; in old_dev_ioctl()
Dbr_netlink_tunnel.c196 static int br_vlan_tunnel_info(struct net_bridge_port *p, int cmd, in br_vlan_tunnel_info()
254 struct net_bridge_port *p, int cmd, in br_process_vlan_tunnel_info()
Dbr.c33 struct net_bridge_port *p; in br_device_event()
151 struct net_bridge_port *p; in br_switchdev_event()
/Linux-v5.4/include/trace/events/
Dbridge.h44 TP_PROTO(struct net_bridge *br, struct net_bridge_port *p,
97 TP_PROTO(struct net_bridge *br, struct net_bridge_port *source,
/Linux-v5.4/include/net/netfilter/
Dbr_netfilter.h46 struct net_bridge_port *port; in bridge_parent_rtable()

12