Lines Matching refs:net_bridge_port

80 	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()
519 static inline void br_netpoll_send_skb(const struct net_bridge_port *p, in br_netpoll_send_skb()
528 int br_netpoll_enable(struct net_bridge_port *p);
529 void br_netpoll_disable(struct net_bridge_port *p);
531 static inline void br_netpoll_send_skb(const struct net_bridge_port *p, in br_netpoll_send_skb()
536 static inline int br_netpoll_enable(struct net_bridge_port *p) in br_netpoll_enable()
541 static inline void br_netpoll_disable(struct net_bridge_port *p) in br_netpoll_disable()
553 const struct net_bridge_port *p,
555 void br_fdb_changeaddr(struct net_bridge_port *p, const unsigned char *newaddr);
559 const struct net_bridge_port *p, u16 vid, int do_all);
566 int br_fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
568 void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source,
581 int br_fdb_sync_static(struct net_bridge *br, struct net_bridge_port *p);
582 void br_fdb_unsync_static(struct net_bridge *br, struct net_bridge_port *p);
583 int br_fdb_external_learn_add(struct net_bridge *br, struct net_bridge_port *p,
586 int br_fdb_external_learn_del(struct net_bridge *br, struct net_bridge_port *p,
589 void br_fdb_offloaded_set(struct net_bridge *br, struct net_bridge_port *p,
599 void br_forward(const struct net_bridge_port *to, struct sk_buff *skb,
606 static inline bool br_skb_isolated(const struct net_bridge_port *to, in br_skb_isolated()
614 void br_port_carrier_check(struct net_bridge_port *p, bool *notified);
623 void br_port_flags_change(struct net_bridge_port *port, unsigned long mask);
625 int nbp_backup_change(struct net_bridge_port *p, struct net_device *backup_dev);
641 static inline struct net_bridge_port *br_port_get_check_rcu(const struct net_device *dev) in br_port_get_check_rcu()
646 static inline struct net_bridge_port *
659 int br_multicast_rcv(struct net_bridge *br, struct net_bridge_port *port,
663 int br_multicast_add_port(struct net_bridge_port *port);
664 void br_multicast_del_port(struct net_bridge_port *port);
665 void br_multicast_enable_port(struct net_bridge_port *port);
666 void br_multicast_disable_port(struct net_bridge_port *port);
674 int br_multicast_set_port_router(struct net_bridge_port *p, unsigned long val);
687 br_multicast_new_port_group(struct net_bridge_port *port, struct br_ip *group,
692 void br_mdb_notify(struct net_device *dev, struct net_bridge_port *port,
694 void br_rtr_notify(struct net_device *dev, struct net_bridge_port *port,
696 void br_multicast_count(struct net_bridge *br, const struct net_bridge_port *p,
701 const struct net_bridge_port *p,
761 struct net_bridge_port *port, in br_multicast_rcv()
774 static inline int br_multicast_add_port(struct net_bridge_port *port) in br_multicast_add_port()
779 static inline void br_multicast_del_port(struct net_bridge_port *port) in br_multicast_del_port()
783 static inline void br_multicast_enable_port(struct net_bridge_port *port) in br_multicast_enable_port()
787 static inline void br_multicast_disable_port(struct net_bridge_port *port) in br_multicast_disable_port()
842 const struct net_bridge_port *p, in br_multicast_count()
870 bool br_should_learn(struct net_bridge_port *p, struct sk_buff *skb, u16 *vid);
872 const struct net_bridge_port *port,
891 int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags,
893 int nbp_vlan_delete(struct net_bridge_port *port, u16 vid);
894 void nbp_vlan_flush(struct net_bridge_port *port);
895 int nbp_vlan_init(struct net_bridge_port *port, struct netlink_ext_ack *extack);
896 int nbp_get_num_vlan_infos(struct net_bridge_port *p, u32 filter_mask);
899 void br_vlan_port_event(struct net_bridge_port *p, unsigned long event);
910 const struct net_bridge_port *p) in nbp_vlan_group()
922 const struct net_bridge_port *p) in nbp_vlan_group_rcu()
968 static inline bool br_should_learn(struct net_bridge_port *p, in br_should_learn()
975 const struct net_bridge_port *port, in br_handle_vlan()
1007 static inline int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags, in nbp_vlan_add()
1014 static inline int nbp_vlan_delete(struct net_bridge_port *port, u16 vid) in nbp_vlan_delete()
1019 static inline void nbp_vlan_flush(struct net_bridge_port *port) in nbp_vlan_flush()
1029 static inline int nbp_vlan_init(struct net_bridge_port *port, in nbp_vlan_init()
1051 static inline int nbp_get_num_vlan_infos(struct net_bridge_port *p, in nbp_get_num_vlan_infos()
1064 const struct net_bridge_port *p) in nbp_vlan_group()
1076 const struct net_bridge_port *p) in nbp_vlan_group_rcu()
1086 static inline void br_vlan_port_event(struct net_bridge_port *p, in br_vlan_port_event()
1115 void br_set_state(struct net_bridge_port *p, unsigned int state);
1116 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no);
1117 void br_init_port(struct net_bridge_port *p);
1118 void br_become_designated_port(struct net_bridge_port *p);
1132 void br_stp_enable_port(struct net_bridge_port *p);
1133 void br_stp_disable_port(struct net_bridge_port *p);
1137 int br_stp_set_port_priority(struct net_bridge_port *p, unsigned long newprio);
1138 int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost);
1148 void br_stp_port_timer_init(struct net_bridge_port *p);
1161 const struct net_bridge_port *port);
1171 int br_sysfs_addif(struct net_bridge_port *p);
1172 int br_sysfs_renameif(struct net_bridge_port *p);
1180 static inline int br_sysfs_addif(struct net_bridge_port *p) { return 0; } in br_sysfs_addif()
1181 static inline int br_sysfs_renameif(struct net_bridge_port *p) { return 0; } in br_sysfs_renameif()
1188 int nbp_switchdev_mark_set(struct net_bridge_port *p);
1189 void nbp_switchdev_frame_mark(const struct net_bridge_port *p,
1191 bool nbp_switchdev_allowed_egress(const struct net_bridge_port *p,
1193 int br_switchdev_set_port_flag(struct net_bridge_port *p,
1207 static inline int nbp_switchdev_mark_set(struct net_bridge_port *p) in nbp_switchdev_mark_set()
1212 static inline void nbp_switchdev_frame_mark(const struct net_bridge_port *p, in nbp_switchdev_frame_mark()
1217 static inline bool nbp_switchdev_allowed_egress(const struct net_bridge_port *p, in nbp_switchdev_allowed_egress()
1223 static inline int br_switchdev_set_port_flag(struct net_bridge_port *p, in br_switchdev_set_port_flag()
1255 u16 vid, struct net_bridge_port *p);
1257 u16 vid, struct net_bridge_port *p, struct nd_msg *msg);