Lines Matching refs:p
21 static inline int should_deliver(const struct net_bridge_port *p, in should_deliver() argument
26 vg = nbp_vlan_group_rcu(p); in should_deliver()
27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) && in should_deliver()
28 (br_mst_is_enabled(p->br) || p->state == BR_STATE_FORWARDING) && in should_deliver()
29 br_allowed_egress(vg, skb) && nbp_switchdev_allowed_egress(p, skb) && in should_deliver()
30 !br_skb_isolated(p, skb); in should_deliver()
176 struct net_bridge_port *prev, struct net_bridge_port *p, in maybe_deliver() argument
182 if (!should_deliver(p, skb)) in maybe_deliver()
185 nbp_switchdev_frame_mark_tx_fwd_to_hwdom(p, skb); in maybe_deliver()
194 br_multicast_count(p->br, p, skb, igmp_type, BR_MCAST_DIR_TX); in maybe_deliver()
196 return p; in maybe_deliver()
205 struct net_bridge_port *p; in br_flood() local
209 list_for_each_entry_rcu(p, &br->port_list, list) { in br_flood()
215 if (!(p->flags & BR_FLOOD)) in br_flood()
219 if (!(p->flags & BR_MCAST_FLOOD) && skb->dev != br->dev) in br_flood()
223 if (!(p->flags & BR_BCAST_FLOOD) && skb->dev != br->dev) in br_flood()
229 if (p->flags & BR_PROXYARP) in br_flood()
232 ((p->flags & BR_PROXYARP_WIFI) || in br_flood()
233 br_is_neigh_suppress_enabled(p, vid))) in br_flood()
236 prev = maybe_deliver(prev, p, skb, local_orig); in br_flood()
256 static void maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb, in maybe_deliver_addr() argument
263 if (!should_deliver(p, skb)) in maybe_deliver_addr()
267 if (skb->dev == p->dev && ether_addr_equal(src, addr)) in maybe_deliver_addr()
283 __br_forward(p, skb, local_orig); in maybe_deliver_addr()
293 struct net_bridge_port_group *p; in br_multicast_flood() local
300 p = rcu_dereference(mdst->ports); in br_multicast_flood()
305 p = NULL; in br_multicast_flood()
309 while (p || rp) { in br_multicast_flood()
312 lport = p ? p->key.port : NULL; in br_multicast_flood()
319 maybe_deliver_addr(lport, skb, p->eth_addr, in br_multicast_flood()
324 p->filter_mode == MCAST_INCLUDE) || in br_multicast_flood()
325 (p->flags & MDB_PG_FLAGS_BLOCKED)) in br_multicast_flood()
336 p = rcu_dereference(p->next); in br_multicast_flood()