Lines Matching defs:bat_priv
67 struct batadv_priv *bat_priv;
71 bat_priv = netdev_priv(hard_iface->soft_iface);
102 batadv_nc_skb_store_for_decoding(bat_priv, skb);
181 struct batadv_priv *bat_priv = orig_node->bat_priv;
186 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if);
195 if (atomic_read(&bat_priv->fragmentation) &&
276 * @bat_priv: the bat priv with all the soft interface information
283 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv,
292 primary_if = batadv_primary_if_get_selected(bat_priv);
319 * @bat_priv: the bat priv with all the soft interface information
333 int batadv_send_skb_unicast(struct batadv_priv *bat_priv,
352 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb,
375 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid))
389 * @bat_priv: the bat priv with all the soft interface information
405 int batadv_send_skb_via_tt_generic(struct batadv_priv *bat_priv,
423 orig_node = batadv_transtable_search(bat_priv, src, dst, vid);
425 ret = batadv_send_skb_unicast(bat_priv, skb, packet_type,
436 * @bat_priv: the bat priv with all the soft interface information
445 int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb,
451 orig_node = batadv_gw_get_selected_orig(bat_priv);
452 ret = batadv_send_skb_unicast(bat_priv, skb, BATADV_UNICAST_4ADDR,
491 * @bat_priv: The bat_priv for the mesh of this forw_packet
496 * is NULL then bat_priv is optional, too.
504 struct batadv_priv *bat_priv,
513 if (queue_left == &bat_priv->bcast_queue_left)
516 if (queue_left == &bat_priv->batman_queue_left)
519 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
704 * @bat_priv: the bat priv with all the soft interface information
713 batadv_forw_packet_bcast_queue(struct batadv_priv *bat_priv,
717 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bcast_list_lock,
718 &bat_priv->forw_bcast_list, send_time);
723 * @bat_priv: the bat priv with all the soft interface information
731 void batadv_forw_packet_ogmv1_queue(struct batadv_priv *bat_priv,
735 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bat_list_lock,
736 &bat_priv->forw_bat_list, send_time);
741 * @bat_priv: the bat priv with all the soft interface information
754 int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv,
764 primary_if = batadv_primary_if_get_selected(bat_priv);
775 &bat_priv->bcast_queue_left,
776 bat_priv, newskb);
790 batadv_forw_packet_bcast_queue(bat_priv, forw_packet, jiffies + delay);
858 struct batadv_priv *bat_priv;
869 bat_priv = netdev_priv(soft_iface);
871 if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_DEACTIVATING) {
876 if (batadv_dat_drop_broadcast_packet(bat_priv, forw_packet)) {
922 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "BCAST packet from orig %pM on %s suppressed: %s\n",
951 batadv_forw_packet_bcast_queue(bat_priv, forw_packet,
959 &bat_priv->forw_bcast_list_lock))
965 * @bat_priv: the bat priv with all the soft interface information
975 batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
981 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
985 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
989 spin_lock_bh(&bat_priv->forw_bcast_list_lock);
990 batadv_forw_packet_list_steal(&bat_priv->forw_bcast_list, &head,
992 spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
995 spin_lock_bh(&bat_priv->forw_bat_list_lock);
996 batadv_forw_packet_list_steal(&bat_priv->forw_bat_list, &head,
998 spin_unlock_bh(&bat_priv->forw_bat_list_lock);