Home
last modified time | relevance | path

Searched refs:forw_packet (Results 1 – 5 of 5) sorted by relevance

/linux/net/batman-adv/
H A Dsend.c452 void batadv_forw_packet_free(struct batadv_forw_packet *forw_packet, in batadv_forw_packet_free() argument
456 kfree_skb(forw_packet->skb); in batadv_forw_packet_free()
458 consume_skb(forw_packet->skb); in batadv_forw_packet_free()
460 batadv_hardif_put(forw_packet->if_incoming); in batadv_forw_packet_free()
461 batadv_hardif_put(forw_packet->if_outgoing); in batadv_forw_packet_free()
462 if (forw_packet->queue_left) in batadv_forw_packet_free()
463 atomic_inc(forw_packet->queue_left); in batadv_forw_packet_free()
464 kfree(forw_packet); in batadv_forw_packet_free()
488 struct batadv_forw_packet *forw_packet; in batadv_forw_packet_alloc() local
506 forw_packet = kmalloc_obj(*forw_packet, GFP_ATOMIC); in batadv_forw_packet_alloc()
[all …]
H A Dbat_iv_ogm.c332 static void batadv_iv_ogm_send_to_if(struct batadv_forw_packet *forw_packet, in batadv_iv_ogm_send_to_if() argument
348 packet_pos = forw_packet->skb->data; in batadv_iv_ogm_send_to_if()
352 while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len, in batadv_iv_ogm_send_to_if()
357 if (test_bit(packet_num, forw_packet->direct_link_flags) && in batadv_iv_ogm_send_to_if()
358 forw_packet->if_incoming == hard_iface) in batadv_iv_ogm_send_to_if()
363 if (packet_num > 0 || !forw_packet->own) in batadv_iv_ogm_send_to_if()
381 packet_pos = forw_packet->skb->data + buff_pos; in batadv_iv_ogm_send_to_if()
386 skb = skb_clone(forw_packet->skb, GFP_ATOMIC); in batadv_iv_ogm_send_to_if()
396 static void batadv_iv_ogm_emit(struct batadv_forw_packet *forw_packet) in batadv_iv_ogm_emit() argument
400 if (!forw_packet->if_incoming) { in batadv_iv_ogm_emit()
[all …]
H A Dsend.h18 void batadv_forw_packet_free(struct batadv_forw_packet *forw_packet,
28 struct batadv_forw_packet *forw_packet,
30 bool batadv_forw_packet_is_rebroadcast(struct batadv_forw_packet *forw_packet);
H A Ddistributed-arp-table.h42 struct batadv_forw_packet *forw_packet);
149 struct batadv_forw_packet *forw_packet) in batadv_dat_drop_broadcast_packet() argument
H A Ddistributed-arp-table.c1779 struct batadv_forw_packet *forw_packet) in batadv_dat_drop_broadcast_packet() argument
1794 if (batadv_forw_packet_is_rebroadcast(forw_packet)) in batadv_dat_drop_broadcast_packet()
1797 vid = batadv_dat_get_vid(forw_packet->skb, &hdr_size); in batadv_dat_drop_broadcast_packet()
1799 type = batadv_arp_get_type(bat_priv, forw_packet->skb, hdr_size); in batadv_dat_drop_broadcast_packet()
1803 ip_dst = batadv_arp_ip_dst(forw_packet->skb, hdr_size); in batadv_dat_drop_broadcast_packet()