Lines Matching refs:p
29 struct net_bridge_port *p; in br_recalculate_neigh_suppress_enabled() local
32 list_for_each_entry(p, &br->port_list, list) { in br_recalculate_neigh_suppress_enabled()
33 if (p->flags & (BR_NEIGH_SUPPRESS | BR_NEIGH_VLAN_SUPPRESS)) { 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() argument
68 if (p) in br_arp_send()
69 vg = nbp_vlan_group_rcu(p); in br_arp_send()
79 if (p) { in br_arp_send()
126 u16 vid, struct net_bridge_port *p) in br_do_proxy_suppress_arp() argument
161 if (br_is_neigh_suppress_enabled(p, vid)) in br_do_proxy_suppress_arp()
204 if ((p && (p->flags & BR_PROXYARP)) || in br_do_proxy_suppress_arp()
208 br_arp_send(br, p, skb->dev, sip, tip, in br_do_proxy_suppress_arp()
211 br_arp_send(br, p, skb->dev, sip, tip, 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() argument
345 if (p) in br_nd_send()
346 vg = nbp_vlan_group_rcu(p); in br_nd_send()
359 if (p) { in br_nd_send()
400 u16 vid, struct net_bridge_port *p, struct nd_msg *msg) in br_do_suppress_nd() argument
410 if (br_is_neigh_suppress_enabled(p, vid)) in br_do_suppress_nd()
466 br_nd_send(br, p, skb, n, in br_do_suppress_nd()
470 br_nd_send(br, p, skb, n, 0, 0, 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() argument
489 if (!p) in br_is_neigh_suppress_enabled()
493 return !!(p->flags & BR_NEIGH_SUPPRESS); in br_is_neigh_suppress_enabled()
495 if (p->flags & BR_NEIGH_VLAN_SUPPRESS) { in br_is_neigh_suppress_enabled()
496 struct net_bridge_vlan_group *vg = nbp_vlan_group_rcu(p); in br_is_neigh_suppress_enabled()
504 return !!(p->flags & BR_NEIGH_SUPPRESS); in br_is_neigh_suppress_enabled()