Lines Matching full:broadcast
104 * allocate the broadcast multicast group, wait in __ipoib_mcast_schedule_join_thread()
225 * the broadcast group. in ipoib_mcast_join_finish()
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()
386 * send out all of the non-broadcast joins in ipoib_mcast_join_complete()
388 if (mcast == priv->broadcast) { in ipoib_mcast_join_complete()
471 if (!priv->broadcast || in ipoib_mcast_join()
490 if (mcast != priv->broadcast) { in ipoib_mcast_join()
494 * and HopLimit as those used in the broadcast-GID. The rest in ipoib_mcast_join()
496 * broadcast-GID as well. in ipoib_mcast_join()
509 rec.qkey = priv->broadcast->mcmember.qkey; in ipoib_mcast_join()
511 rec.mtu = priv->broadcast->mcmember.mtu; in ipoib_mcast_join()
512 rec.traffic_class = priv->broadcast->mcmember.traffic_class; in ipoib_mcast_join()
514 rec.rate = priv->broadcast->mcmember.rate; in ipoib_mcast_join()
515 rec.sl = priv->broadcast->mcmember.sl; in ipoib_mcast_join()
516 rec.flow_label = priv->broadcast->mcmember.flow_label; in ipoib_mcast_join()
517 rec.hop_limit = priv->broadcast->mcmember.hop_limit; in ipoib_mcast_join()
583 if (!priv->broadcast) { in ipoib_mcast_join_task()
584 struct ipoib_mcast *broadcast; in ipoib_mcast_join_task() local
586 broadcast = ipoib_mcast_alloc(dev); in ipoib_mcast_join_task()
587 if (!broadcast) { in ipoib_mcast_join_task()
588 ipoib_warn(priv, "failed to allocate broadcast group\n"); in ipoib_mcast_join_task()
591 * creating our broadcast group and attaching to in ipoib_mcast_join_task()
599 memcpy(broadcast->mcmember.mgid.raw, priv->dev->broadcast + 4, in ipoib_mcast_join_task()
601 priv->broadcast = broadcast; in ipoib_mcast_join_task()
603 __ipoib_mcast_add(dev, priv->broadcast); in ipoib_mcast_join_task()
606 if (!test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_join_task()
607 if (IS_ERR_OR_NULL(priv->broadcast->mc) && in ipoib_mcast_join_task()
608 !test_bit(IPOIB_MCAST_FLAG_BUSY, &priv->broadcast->flags)) { in ipoib_mcast_join_task()
609 mcast = priv->broadcast; in ipoib_mcast_join_task()
620 * We'll never get here until the broadcast group is both allocated in ipoib_mcast_join_task()
753 !priv->broadcast || in ipoib_mcast_send()
754 !test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_send()
841 if (priv->broadcast) { in ipoib_mcast_dev_flush()
842 rb_erase(&priv->broadcast->rb_node, &priv->multicast_tree); in ipoib_mcast_dev_flush()
843 list_add_tail(&priv->broadcast->list, &remove_list); in ipoib_mcast_dev_flush()
844 priv->broadcast = NULL; in ipoib_mcast_dev_flush()
853 static int ipoib_mcast_addr_is_valid(const u8 *addr, const u8 *broadcast) in ipoib_mcast_addr_is_valid() argument
856 if (memcmp(addr, broadcast, 6)) in ipoib_mcast_addr_is_valid()
859 if (memcmp(addr + 7, broadcast + 7, 3)) in ipoib_mcast_addr_is_valid()
900 if (!ipoib_mcast_addr_is_valid(ha->addr, dev->broadcast)) in ipoib_mcast_restart_task()