Lines Matching refs:mp

507 	struct net_bridge_mdb_entry *mp;  in br_switchdev_mdb_complete()  local
516 mp = br_mdb_ip_get(br, &data->ip); in br_switchdev_mdb_complete()
517 if (!mp) in br_switchdev_mdb_complete()
519 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_complete()
527 br_mdb_flag_change_notify(br->dev, mp, p); in br_switchdev_mdb_complete()
536 const struct net_bridge_mdb_entry *mp) in br_switchdev_mdb_populate() argument
538 if (mp->addr.proto == htons(ETH_P_IP)) in br_switchdev_mdb_populate()
539 ip_eth_mc_map(mp->addr.dst.ip4, mdb->addr); in br_switchdev_mdb_populate()
541 else if (mp->addr.proto == htons(ETH_P_IPV6)) in br_switchdev_mdb_populate()
542 ipv6_eth_mc_map(&mp->addr.dst.ip6, mdb->addr); in br_switchdev_mdb_populate()
545 ether_addr_copy(mdb->addr, mp->addr.dst.mac_addr); in br_switchdev_mdb_populate()
547 mdb->vid = mp->addr.vid; in br_switchdev_mdb_populate()
552 struct net_bridge_mdb_entry *mp, in br_switchdev_host_mdb_one() argument
563 br_switchdev_mdb_populate(&mdb, mp); in br_switchdev_host_mdb_one()
576 struct net_bridge_mdb_entry *mp, int type) in br_switchdev_host_mdb() argument
582 br_switchdev_host_mdb_one(dev, lower_dev, mp, type); in br_switchdev_host_mdb()
609 const struct net_bridge_mdb_entry *mp, in br_switchdev_mdb_queue_one() argument
620 br_switchdev_mdb_populate(&mdb, mp); in br_switchdev_mdb_queue_one()
644 struct net_bridge_mdb_entry *mp, in br_switchdev_mdb_notify() argument
657 return br_switchdev_host_mdb(dev, mp, type); in br_switchdev_mdb_notify()
659 br_switchdev_mdb_populate(&mdb, mp); in br_switchdev_mdb_notify()
668 complete_info->ip = mp->addr; in br_switchdev_mdb_notify()
687 const struct net_bridge_mdb_entry *mp; in br_switchdev_mdb_replay() local
721 hlist_for_each_entry(mp, &br->mdb_list, mdb_node) { in br_switchdev_mdb_replay()
725 if (mp->host_joined) { in br_switchdev_mdb_replay()
728 mp, br_dev); in br_switchdev_mdb_replay()
735 for (pp = &mp->ports; (p = mlock_dereference(*pp, br)) != NULL; in br_switchdev_mdb_replay()
742 mp, dev); in br_switchdev_mdb_replay()