Lines Matching refs:broadcast

227 	if (!memcmp(mcast->mcmember.mgid.raw, priv->dev->broadcast + 4,  in ipoib_mcast_join_finish()
230 if (!priv->broadcast) { in ipoib_mcast_join_finish()
235 priv->broadcast->mcmember.qkey = mcmember->qkey; in ipoib_mcast_join_finish()
236 priv->broadcast->mcmember.mtu = mcmember->mtu; in ipoib_mcast_join_finish()
237 priv->broadcast->mcmember.traffic_class = mcmember->traffic_class; in ipoib_mcast_join_finish()
238 priv->broadcast->mcmember.rate = mcmember->rate; in ipoib_mcast_join_finish()
239 priv->broadcast->mcmember.sl = mcmember->sl; in ipoib_mcast_join_finish()
240 priv->broadcast->mcmember.flow_label = mcmember->flow_label; in ipoib_mcast_join_finish()
241 priv->broadcast->mcmember.hop_limit = mcmember->hop_limit; in ipoib_mcast_join_finish()
244 priv->broadcast->mcmember.mtu); in ipoib_mcast_join_finish()
250 priv->qkey = be32_to_cpu(priv->broadcast->mcmember.qkey); in ipoib_mcast_join_finish()
389 if (mcast == priv->broadcast) { in ipoib_mcast_join_complete()
472 if (!priv->broadcast || in ipoib_mcast_join()
491 if (mcast != priv->broadcast) { in ipoib_mcast_join()
510 rec.qkey = priv->broadcast->mcmember.qkey; in ipoib_mcast_join()
512 rec.mtu = priv->broadcast->mcmember.mtu; in ipoib_mcast_join()
513 rec.traffic_class = priv->broadcast->mcmember.traffic_class; in ipoib_mcast_join()
515 rec.rate = priv->broadcast->mcmember.rate; in ipoib_mcast_join()
516 rec.sl = priv->broadcast->mcmember.sl; in ipoib_mcast_join()
517 rec.flow_label = priv->broadcast->mcmember.flow_label; in ipoib_mcast_join()
518 rec.hop_limit = priv->broadcast->mcmember.hop_limit; in ipoib_mcast_join()
584 if (!priv->broadcast) { in ipoib_mcast_join_task()
585 struct ipoib_mcast *broadcast; in ipoib_mcast_join_task() local
587 broadcast = ipoib_mcast_alloc(dev); in ipoib_mcast_join_task()
588 if (!broadcast) { in ipoib_mcast_join_task()
600 memcpy(broadcast->mcmember.mgid.raw, priv->dev->broadcast + 4, in ipoib_mcast_join_task()
602 priv->broadcast = broadcast; in ipoib_mcast_join_task()
604 __ipoib_mcast_add(dev, priv->broadcast); in ipoib_mcast_join_task()
607 if (!test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_join_task()
608 if (IS_ERR_OR_NULL(priv->broadcast->mc) && in ipoib_mcast_join_task()
609 !test_bit(IPOIB_MCAST_FLAG_BUSY, &priv->broadcast->flags)) { in ipoib_mcast_join_task()
610 mcast = priv->broadcast; in ipoib_mcast_join_task()
754 !priv->broadcast || in ipoib_mcast_send()
755 !test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_send()
842 if (priv->broadcast) { in ipoib_mcast_dev_flush()
843 rb_erase(&priv->broadcast->rb_node, &priv->multicast_tree); in ipoib_mcast_dev_flush()
844 list_add_tail(&priv->broadcast->list, &remove_list); in ipoib_mcast_dev_flush()
845 priv->broadcast = NULL; in ipoib_mcast_dev_flush()
854 static int ipoib_mcast_addr_is_valid(const u8 *addr, const u8 *broadcast) in ipoib_mcast_addr_is_valid() argument
857 if (memcmp(addr, broadcast, 6)) in ipoib_mcast_addr_is_valid()
860 if (memcmp(addr + 7, broadcast + 7, 3)) in ipoib_mcast_addr_is_valid()
901 if (!ipoib_mcast_addr_is_valid(ha->addr, dev->broadcast)) in ipoib_mcast_restart_task()