Lines Matching refs:pg
464 struct net_bridge_port_group *pg, in nlmsg_populate_mdb_fill() argument
486 if (__mdb_fill_info(skb, mp, pg)) in nlmsg_populate_mdb_fill()
501 static size_t rtnl_mdb_nlmsg_size(struct net_bridge_port_group *pg) in rtnl_mdb_nlmsg_size() argument
509 if (!pg) in rtnl_mdb_nlmsg_size()
515 switch (pg->key.addr.proto) { in rtnl_mdb_nlmsg_size()
518 if (pg->key.addr.src.ip4) in rtnl_mdb_nlmsg_size()
520 if (pg->key.port->br->multicast_ctx.multicast_igmp_version == 2) in rtnl_mdb_nlmsg_size()
527 if (!ipv6_addr_any(&pg->key.addr.src.ip6)) in rtnl_mdb_nlmsg_size()
529 if (pg->key.port->br->multicast_ctx.multicast_mld_version == 1) in rtnl_mdb_nlmsg_size()
540 if (!hlist_empty(&pg->src_list)) in rtnl_mdb_nlmsg_size()
543 hlist_for_each_entry(ent, &pg->src_list, node) { in rtnl_mdb_nlmsg_size()
764 struct net_bridge_port_group *pg, in br_mdb_notify() argument
778 if (pg) { in br_mdb_notify()
781 mdb.obj.orig_dev = pg->key.port->dev; in br_mdb_notify()
787 complete_info->port = pg->key.port; in br_mdb_notify()
791 if (switchdev_port_obj_add(pg->key.port->dev, &mdb.obj, NULL)) in br_mdb_notify()
795 switchdev_port_obj_del(pg->key.port->dev, &mdb.obj); in br_mdb_notify()
802 skb = nlmsg_new(rtnl_mdb_nlmsg_size(pg), GFP_ATOMIC); in br_mdb_notify()
806 err = nlmsg_populate_mdb_fill(skb, dev, mp, pg, type); in br_mdb_notify()