• Home
  • Raw
  • Download

Lines Matching refs:vlan

212 	struct net_bridge_vlan *vlan;  in br_multicast_pg_to_port_ctx()  local
228 vlan = br_vlan_find(nbp_vlan_group_rcu(pg->key.port), pg->key.addr.vid); in br_multicast_pg_to_port_ctx()
229 if (vlan && !br_multicast_port_ctx_vlan_disabled(&vlan->port_mcast_ctx)) in br_multicast_pg_to_port_ctx()
230 pmctx = &vlan->port_mcast_ctx; in br_multicast_pg_to_port_ctx()
242 struct net_bridge_vlan *vlan; in br_multicast_port_vid_to_port_ctx() local
252 vlan = br_vlan_find(nbp_vlan_group_rcu(port), vid); in br_multicast_port_vid_to_port_ctx()
253 if (vlan && !br_multicast_port_ctx_vlan_disabled(&vlan->port_mcast_ctx)) in br_multicast_port_vid_to_port_ctx()
254 pmctx = &vlan->port_mcast_ctx; in br_multicast_port_vid_to_port_ctx()
909 struct net_bridge_vlan *vlan = NULL; in __br_multicast_query_handle_vlan() local
912 vlan = pmctx->vlan; in __br_multicast_query_handle_vlan()
914 vlan = brmctx->vlan; in __br_multicast_query_handle_vlan()
916 if (vlan && !(vlan->flags & BRIDGE_VLAN_INFO_UNTAGGED)) { in __br_multicast_query_handle_vlan()
921 __vlan_hwaccel_put_tag(skb, htons(vlan_proto), vlan->vid); in __br_multicast_query_handle_vlan()
1996 struct net_bridge_vlan *vlan, in br_multicast_port_ctx_init() argument
2000 pmctx->vlan = vlan; in br_multicast_port_ctx_init()
2100 if (pg->key.addr.vid == pmctx->vlan->vid) in __br_multicast_enable_port_ctx()
2125 pg->key.addr.vid == pmctx->vlan->vid)) in __br_multicast_disable_port_ctx()
3934 struct net_bridge_vlan *vlan, in br_multicast_rcv() argument
3945 if (br_opt_get((*brmctx)->br, BROPT_MCAST_VLAN_SNOOPING_ENABLED) && vlan) { in br_multicast_rcv()
3951 if (br_vlan_is_master(vlan)) { in br_multicast_rcv()
3952 masterv = vlan; in br_multicast_rcv()
3953 *brmctx = &vlan->br_mcast_ctx; in br_multicast_rcv()
3956 masterv = vlan->brvlan; in br_multicast_rcv()
3957 *brmctx = &vlan->brvlan->br_mcast_ctx; in br_multicast_rcv()
3958 *pmctx = &vlan->port_mcast_ctx; in br_multicast_rcv()
4029 struct net_bridge_vlan *vlan, in br_multicast_ctx_init() argument
4033 brmctx->vlan = vlan; in br_multicast_ctx_init()
4181 struct net_bridge_vlan *vlan; in br_multicast_open() local
4185 list_for_each_entry(vlan, &vg->vlan_list, vlist) { in br_multicast_open()
4188 brmctx = &vlan->br_mcast_ctx; in br_multicast_open()
4189 if (br_vlan_is_brentry(vlan) && in br_multicast_open()
4191 __br_multicast_open(&vlan->br_mcast_ctx); in br_multicast_open()
4213 void br_multicast_toggle_one_vlan(struct net_bridge_vlan *vlan, bool on) in br_multicast_toggle_one_vlan() argument
4221 if (on == !!(vlan->priv_flags & BR_VLFLAG_MCAST_ENABLED)) in br_multicast_toggle_one_vlan()
4224 if (br_vlan_is_master(vlan)) { in br_multicast_toggle_one_vlan()
4225 br = vlan->br; in br_multicast_toggle_one_vlan()
4227 if (!br_vlan_is_brentry(vlan) || in br_multicast_toggle_one_vlan()
4229 br_multicast_ctx_vlan_global_disabled(&vlan->br_mcast_ctx))) in br_multicast_toggle_one_vlan()
4233 vlan->priv_flags ^= BR_VLFLAG_MCAST_ENABLED; in br_multicast_toggle_one_vlan()
4237 __br_multicast_open(&vlan->br_mcast_ctx); in br_multicast_toggle_one_vlan()
4239 __br_multicast_stop(&vlan->br_mcast_ctx); in br_multicast_toggle_one_vlan()
4243 brmctx = br_multicast_port_ctx_get_global(&vlan->port_mcast_ctx); in br_multicast_toggle_one_vlan()
4247 br = vlan->port->br; in br_multicast_toggle_one_vlan()
4249 vlan->priv_flags ^= BR_VLFLAG_MCAST_ENABLED; in br_multicast_toggle_one_vlan()
4251 __br_multicast_enable_port_ctx(&vlan->port_mcast_ctx); in br_multicast_toggle_one_vlan()
4253 __br_multicast_disable_port_ctx(&vlan->port_mcast_ctx); in br_multicast_toggle_one_vlan()
4258 static void br_multicast_toggle_vlan(struct net_bridge_vlan *vlan, bool on) in br_multicast_toggle_vlan() argument
4262 if (WARN_ON_ONCE(!br_vlan_is_master(vlan))) in br_multicast_toggle_vlan()
4265 list_for_each_entry(p, &vlan->br->port_list, list) { in br_multicast_toggle_vlan()
4268 vport = br_vlan_find(nbp_vlan_group(p), vlan->vid); in br_multicast_toggle_vlan()
4274 if (br_vlan_is_brentry(vlan)) in br_multicast_toggle_vlan()
4275 br_multicast_toggle_one_vlan(vlan, on); in br_multicast_toggle_vlan()
4282 struct net_bridge_vlan *vlan; in br_multicast_toggle_vlan_snooping() local
4311 list_for_each_entry(vlan, &vg->vlan_list, vlist) in br_multicast_toggle_vlan_snooping()
4312 br_multicast_toggle_vlan(vlan, on); in br_multicast_toggle_vlan_snooping()
4317 bool br_multicast_toggle_global_vlan(struct net_bridge_vlan *vlan, bool on) in br_multicast_toggle_global_vlan() argument
4324 if (on == !!(vlan->priv_flags & BR_VLFLAG_GLOBAL_MCAST_ENABLED)) in br_multicast_toggle_global_vlan()
4327 vlan->priv_flags ^= BR_VLFLAG_GLOBAL_MCAST_ENABLED; in br_multicast_toggle_global_vlan()
4328 br_multicast_toggle_vlan(vlan, on); in br_multicast_toggle_global_vlan()
4339 struct net_bridge_vlan *vlan; in br_multicast_stop() local
4343 list_for_each_entry(vlan, &vg->vlan_list, vlist) { in br_multicast_stop()
4346 brmctx = &vlan->br_mcast_ctx; in br_multicast_stop()
4347 if (br_vlan_is_brentry(vlan) && in br_multicast_stop()
4349 __br_multicast_stop(&vlan->br_mcast_ctx); in br_multicast_stop()
4528 struct net_bridge_vlan *vlan; in br_multicast_start_querier() local
4530 vlan = br_vlan_find(nbp_vlan_group_rcu(port), in br_multicast_start_querier()
4531 brmctx->vlan->vid); in br_multicast_start_querier()
4532 if (!vlan || in br_multicast_start_querier()
4533 br_multicast_port_ctx_state_stopped(&vlan->port_mcast_ctx)) in br_multicast_start_querier()
4536 ip4_own_query = &vlan->port_mcast_ctx.ip4_own_query; in br_multicast_start_querier()
4538 ip6_own_query = &vlan->port_mcast_ctx.ip6_own_query; in br_multicast_start_querier()