Lines Matching refs:bat_priv

67 	struct batadv_priv *bat_priv;  in batadv_send_skb_packet()  local
71 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet()
102 batadv_nc_skb_store_for_decoding(bat_priv, skb); in batadv_send_skb_packet()
180 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() local
185 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig()
194 if (atomic_read(&bat_priv->fragmentation) && in batadv_send_skb_to_orig()
282 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_prepare_unicast_4addr() argument
291 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr()
331 int batadv_send_skb_unicast(struct batadv_priv *bat_priv, in batadv_send_skb_unicast() argument
350 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, in batadv_send_skb_unicast()
373 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast()
403 int batadv_send_skb_via_tt_generic(struct batadv_priv *bat_priv, in batadv_send_skb_via_tt_generic() argument
421 orig_node = batadv_transtable_search(bat_priv, src, dst, vid); in batadv_send_skb_via_tt_generic()
423 ret = batadv_send_skb_unicast(bat_priv, skb, packet_type, in batadv_send_skb_via_tt_generic()
442 int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_send_skb_via_gw() argument
448 orig_node = batadv_gw_get_selected_orig(bat_priv); in batadv_send_skb_via_gw()
449 ret = batadv_send_skb_unicast(bat_priv, skb, BATADV_UNICAST_4ADDR, in batadv_send_skb_via_gw()
498 struct batadv_priv *bat_priv, in batadv_forw_packet_alloc() argument
507 if (queue_left == &bat_priv->bcast_queue_left) in batadv_forw_packet_alloc()
510 if (queue_left == &bat_priv->batman_queue_left) in batadv_forw_packet_alloc()
513 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_forw_packet_alloc()
707 batadv_forw_packet_bcast_queue(struct batadv_priv *bat_priv, in batadv_forw_packet_bcast_queue() argument
711 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bcast_list_lock, in batadv_forw_packet_bcast_queue()
712 &bat_priv->forw_bcast_list, send_time); in batadv_forw_packet_bcast_queue()
725 void batadv_forw_packet_ogmv1_queue(struct batadv_priv *bat_priv, in batadv_forw_packet_ogmv1_queue() argument
729 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bat_list_lock, in batadv_forw_packet_ogmv1_queue()
730 &bat_priv->forw_bat_list, send_time); in batadv_forw_packet_ogmv1_queue()
751 static int batadv_forw_bcast_packet_to_list(struct batadv_priv *bat_priv, in batadv_forw_bcast_packet_to_list() argument
767 &bat_priv->bcast_queue_left, in batadv_forw_bcast_packet_to_list()
768 bat_priv, newskb); in batadv_forw_bcast_packet_to_list()
779 batadv_forw_packet_bcast_queue(bat_priv, forw_packet, send_time); in batadv_forw_bcast_packet_to_list()
807 static int batadv_forw_bcast_packet_if(struct batadv_priv *bat_priv, in batadv_forw_bcast_packet_if() argument
831 ret = batadv_forw_bcast_packet_to_list(bat_priv, skb, delay, in batadv_forw_bcast_packet_if()
849 static bool batadv_send_no_broadcast(struct batadv_priv *bat_priv, in batadv_send_no_broadcast() argument
893 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_send_no_broadcast()
918 static int __batadv_forw_bcast_packet(struct batadv_priv *bat_priv, in __batadv_forw_bcast_packet() argument
927 primary_if = batadv_primary_if_get_selected(bat_priv); in __batadv_forw_bcast_packet()
933 if (hard_iface->soft_iface != bat_priv->soft_iface) in __batadv_forw_bcast_packet()
939 if (batadv_send_no_broadcast(bat_priv, skb, own_packet, in __batadv_forw_bcast_packet()
945 ret = batadv_forw_bcast_packet_if(bat_priv, skb, delay, in __batadv_forw_bcast_packet()
972 int batadv_forw_bcast_packet(struct batadv_priv *bat_priv, in batadv_forw_bcast_packet() argument
977 return __batadv_forw_bcast_packet(bat_priv, skb, delay, own_packet); in batadv_forw_bcast_packet()
993 void batadv_send_bcast_packet(struct batadv_priv *bat_priv, in batadv_send_bcast_packet() argument
998 __batadv_forw_bcast_packet(bat_priv, skb, delay, own_packet); in batadv_send_bcast_packet()
1056 struct batadv_priv *bat_priv; in batadv_send_outstanding_bcast_packet() local
1063 bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface); in batadv_send_outstanding_bcast_packet()
1065 if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_DEACTIVATING) { in batadv_send_outstanding_bcast_packet()
1070 if (batadv_dat_drop_broadcast_packet(bat_priv, forw_packet)) { in batadv_send_outstanding_bcast_packet()
1084 batadv_forw_packet_bcast_queue(bat_priv, forw_packet, in batadv_send_outstanding_bcast_packet()
1092 &bat_priv->forw_bcast_list_lock)) in batadv_send_outstanding_bcast_packet()
1108 batadv_purge_outstanding_packets(struct batadv_priv *bat_priv, in batadv_purge_outstanding_packets() argument
1114 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_outstanding_packets()
1118 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_outstanding_packets()
1122 spin_lock_bh(&bat_priv->forw_bcast_list_lock); in batadv_purge_outstanding_packets()
1123 batadv_forw_packet_list_steal(&bat_priv->forw_bcast_list, &head, in batadv_purge_outstanding_packets()
1125 spin_unlock_bh(&bat_priv->forw_bcast_list_lock); in batadv_purge_outstanding_packets()
1128 spin_lock_bh(&bat_priv->forw_bat_list_lock); in batadv_purge_outstanding_packets()
1129 batadv_forw_packet_list_steal(&bat_priv->forw_bat_list, &head, in batadv_purge_outstanding_packets()
1131 spin_unlock_bh(&bat_priv->forw_bat_list_lock); in batadv_purge_outstanding_packets()