• Home
  • Raw
  • Download

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()
181 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() local
186 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig()
195 if (atomic_read(&bat_priv->fragmentation) && in batadv_send_skb_to_orig()
283 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_prepare_unicast_4addr() argument
292 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr()
333 int batadv_send_skb_unicast(struct batadv_priv *bat_priv, in batadv_send_skb_unicast() argument
352 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, in batadv_send_skb_unicast()
375 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast()
405 int batadv_send_skb_via_tt_generic(struct batadv_priv *bat_priv, in batadv_send_skb_via_tt_generic() argument
423 orig_node = batadv_transtable_search(bat_priv, src, dst, vid); in batadv_send_skb_via_tt_generic()
425 ret = batadv_send_skb_unicast(bat_priv, skb, packet_type, in batadv_send_skb_via_tt_generic()
445 int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_send_skb_via_gw() argument
451 orig_node = batadv_gw_get_selected_orig(bat_priv); in batadv_send_skb_via_gw()
452 ret = batadv_send_skb_unicast(bat_priv, skb, BATADV_UNICAST_4ADDR, in batadv_send_skb_via_gw()
504 struct batadv_priv *bat_priv, in batadv_forw_packet_alloc() argument
513 if (queue_left == &bat_priv->bcast_queue_left) in batadv_forw_packet_alloc()
516 if (queue_left == &bat_priv->batman_queue_left) in batadv_forw_packet_alloc()
519 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_forw_packet_alloc()
713 batadv_forw_packet_bcast_queue(struct batadv_priv *bat_priv, in batadv_forw_packet_bcast_queue() argument
717 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bcast_list_lock, in batadv_forw_packet_bcast_queue()
718 &bat_priv->forw_bcast_list, send_time); in batadv_forw_packet_bcast_queue()
731 void batadv_forw_packet_ogmv1_queue(struct batadv_priv *bat_priv, in batadv_forw_packet_ogmv1_queue() argument
735 batadv_forw_packet_queue(forw_packet, &bat_priv->forw_bat_list_lock, in batadv_forw_packet_ogmv1_queue()
736 &bat_priv->forw_bat_list, send_time); in batadv_forw_packet_ogmv1_queue()
754 int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv, in batadv_add_bcast_packet_to_list() argument
764 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_add_bcast_packet_to_list()
775 &bat_priv->bcast_queue_left, in batadv_add_bcast_packet_to_list()
776 bat_priv, newskb); in batadv_add_bcast_packet_to_list()
790 batadv_forw_packet_bcast_queue(bat_priv, forw_packet, jiffies + delay); in batadv_add_bcast_packet_to_list()
858 struct batadv_priv *bat_priv; in batadv_send_outstanding_bcast_packet() local
869 bat_priv = netdev_priv(soft_iface); in batadv_send_outstanding_bcast_packet()
871 if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_DEACTIVATING) { in batadv_send_outstanding_bcast_packet()
876 if (batadv_dat_drop_broadcast_packet(bat_priv, forw_packet)) { in batadv_send_outstanding_bcast_packet()
922 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "BCAST packet from orig %pM on %s suppressed: %s\n", in batadv_send_outstanding_bcast_packet()
951 batadv_forw_packet_bcast_queue(bat_priv, forw_packet, in batadv_send_outstanding_bcast_packet()
959 &bat_priv->forw_bcast_list_lock)) in batadv_send_outstanding_bcast_packet()
975 batadv_purge_outstanding_packets(struct batadv_priv *bat_priv, in batadv_purge_outstanding_packets() argument
981 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_outstanding_packets()
985 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_purge_outstanding_packets()
989 spin_lock_bh(&bat_priv->forw_bcast_list_lock); in batadv_purge_outstanding_packets()
990 batadv_forw_packet_list_steal(&bat_priv->forw_bcast_list, &head, in batadv_purge_outstanding_packets()
992 spin_unlock_bh(&bat_priv->forw_bcast_list_lock); in batadv_purge_outstanding_packets()
995 spin_lock_bh(&bat_priv->forw_bat_list_lock); in batadv_purge_outstanding_packets()
996 batadv_forw_packet_list_steal(&bat_priv->forw_bat_list, &head, in batadv_purge_outstanding_packets()
998 spin_unlock_bh(&bat_priv->forw_bat_list_lock); in batadv_purge_outstanding_packets()