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);
180 struct batadv_priv *bat_priv = orig_node->bat_priv;
185 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if);
194 if (atomic_read(&bat_priv->fragmentation) &&
275 * @bat_priv: the bat priv with all the soft interface information
282 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv,
291 primary_if = batadv_primary_if_get_selected(bat_priv);
317 * @bat_priv: the bat priv with all the soft interface information
331 int batadv_send_skb_unicast(struct batadv_priv *bat_priv,
350 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb,
373 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid))
387 * @bat_priv: the bat priv with all the soft interface information
403 int batadv_send_skb_via_tt_generic(struct batadv_priv *bat_priv,
421 orig_node = batadv_transtable_search(bat_priv, src, dst, vid);
423 ret = batadv_send_skb_unicast(bat_priv, skb, packet_type,
433 * @bat_priv: the bat priv with all the soft interface information
442 int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb,
448 orig_node = batadv_gw_get_selected_orig(bat_priv);
449 ret = batadv_send_skb_unicast(bat_priv, skb, BATADV_UNICAST_4ADDR,
485 * @bat_priv: The bat_priv for the mesh of this forw_packet
490 * is NULL then bat_priv is optional, too.
498 struct batadv_priv *bat_priv,
507 if (queue_left == &bat_priv->bcast_queue_left)
510 if (queue_left == &bat_priv->batman_queue_left)
513 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
698 * @bat_priv: the bat priv with all the soft interface information
707 batadv_forw_packet_bcast_queue(struct batadv_priv *bat_priv,
711 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bcast_list_lock,
712 &bat_priv->forw_bcast_list, send_time);
717 * @bat_priv: the bat priv with all the soft interface information
725 void batadv_forw_packet_ogmv1_queue(struct batadv_priv *bat_priv,
729 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bat_list_lock,
730 &bat_priv->forw_bat_list, send_time);
735 * @bat_priv: the bat priv with all the soft interface information
751 static int batadv_forw_bcast_packet_to_list(struct batadv_priv *bat_priv,
767 &bat_priv->bcast_queue_left,
768 bat_priv, newskb);
779 batadv_forw_packet_bcast_queue(bat_priv, forw_packet, send_time);
790 * @bat_priv: the bat priv with all the soft interface information
807 static int batadv_forw_bcast_packet_if(struct batadv_priv *bat_priv,
831 ret = batadv_forw_bcast_packet_to_list(bat_priv, skb, delay,
841 * @bat_priv: the bat priv with all the soft interface information
849 static bool batadv_send_no_broadcast(struct batadv_priv *bat_priv,
893 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
903 * @bat_priv: the bat priv with all the soft interface information
918 static int __batadv_forw_bcast_packet(struct batadv_priv *bat_priv,
927 primary_if = batadv_primary_if_get_selected(bat_priv);
933 if (hard_iface->soft_iface != bat_priv->soft_iface)
939 if (batadv_send_no_broadcast(bat_priv, skb, own_packet,
945 ret = batadv_forw_bcast_packet_if(bat_priv, skb, delay,
961 * @bat_priv: the bat priv with all the soft interface information
972 int batadv_forw_bcast_packet(struct batadv_priv *bat_priv,
977 return __batadv_forw_bcast_packet(bat_priv, skb, delay, own_packet);
982 * @bat_priv: the bat priv with all the soft interface information
993 void batadv_send_bcast_packet(struct batadv_priv *bat_priv,
998 __batadv_forw_bcast_packet(bat_priv, skb, delay, own_packet);
1056 struct batadv_priv *bat_priv;
1063 bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface);
1065 if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_DEACTIVATING) {
1070 if (batadv_dat_drop_broadcast_packet(bat_priv, forw_packet)) {
1084 batadv_forw_packet_bcast_queue(bat_priv, forw_packet,
1092 &bat_priv->forw_bcast_list_lock))
1098 * @bat_priv: the bat priv with all the soft interface information
1108 batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
1114 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
1118 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
1122 spin_lock_bh(&bat_priv->forw_bcast_list_lock);
1123 batadv_forw_packet_list_steal(&bat_priv->forw_bcast_list, &head,
1125 spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
1128 spin_lock_bh(&bat_priv->forw_bat_list_lock);
1129 batadv_forw_packet_list_steal(&bat_priv->forw_bat_list, &head,
1131 spin_unlock_bh(&bat_priv->forw_bat_list_lock);