Searched refs:mdb (Results 1 – 3 of 3) sorted by relevance
/net/bridge/ |
D | br_multicast.c | 55 static inline int __br_ip4_hash(struct net_bridge_mdb_htable *mdb, __be32 ip, in __br_ip4_hash() argument 58 return jhash_2words((__force u32)ip, vid, mdb->secret) & (mdb->max - 1); in __br_ip4_hash() 62 static inline int __br_ip6_hash(struct net_bridge_mdb_htable *mdb, in __br_ip6_hash() argument 67 mdb->secret) & (mdb->max - 1); in __br_ip6_hash() 71 static inline int br_ip_hash(struct net_bridge_mdb_htable *mdb, in br_ip_hash() argument 76 return __br_ip4_hash(mdb, ip->u.ip4, ip->vid); in br_ip_hash() 79 return __br_ip6_hash(mdb, &ip->u.ip6, ip->vid); in br_ip_hash() 86 struct net_bridge_mdb_htable *mdb, struct br_ip *dst, int hash) in __br_mdb_ip_get() argument 90 hlist_for_each_entry_rcu(mp, &mdb->mhash[hash], hlist[mdb->ver]) { in __br_mdb_ip_get() 98 struct net_bridge_mdb_entry *br_mdb_ip_get(struct net_bridge_mdb_htable *mdb, in br_mdb_ip_get() argument [all …]
|
D | br_mdb.c | 46 struct net_bridge_mdb_htable *mdb; in br_mdb_fill_info() local 54 mdb = rcu_dereference(br->mdb); in br_mdb_fill_info() 55 if (!mdb) in br_mdb_fill_info() 62 for (i = 0; i < mdb->max; i++) { in br_mdb_fill_info() 67 hlist_for_each_entry_rcu(mp, &mdb->mhash[i], hlist[mdb->ver]) { in br_mdb_fill_info() 322 struct net_bridge_mdb_htable *mdb; in br_mdb_add_group() local 325 mdb = mlock_dereference(br->mdb, br); in br_mdb_add_group() 326 mp = br_mdb_ip_get(mdb, group); in br_mdb_add_group() 407 struct net_bridge_mdb_htable *mdb; in __br_mdb_del() local 429 mdb = mlock_dereference(br->mdb, br); in __br_mdb_del() [all …]
|
D | br_private.h | 268 struct net_bridge_mdb_htable __rcu *mdb; member 465 struct net_bridge_mdb_htable *mdb,
|