Lines Matching refs:forw_packet
332 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 (forw_packet->direct_link_flags & BIT(packet_num) && 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()
382 packet_pos = forw_packet->skb->data + buff_pos; in batadv_iv_ogm_send_to_if()
387 skb = skb_clone(forw_packet->skb, GFP_ATOMIC); in batadv_iv_ogm_send_to_if()
397 static void batadv_iv_ogm_emit(struct batadv_forw_packet *forw_packet) in batadv_iv_ogm_emit() argument
401 if (!forw_packet->if_incoming) { in batadv_iv_ogm_emit()
406 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_iv_ogm_emit()
408 if (WARN_ON(!forw_packet->if_outgoing)) in batadv_iv_ogm_emit()
411 if (forw_packet->if_outgoing->soft_iface != soft_iface) { in batadv_iv_ogm_emit()
416 if (forw_packet->if_incoming->if_status != BATADV_IF_ACTIVE) in batadv_iv_ogm_emit()
420 batadv_iv_ogm_send_to_if(forw_packet, forw_packet->if_outgoing); in batadv_iv_ogm_emit()
444 const struct batadv_forw_packet *forw_packet) in batadv_iv_ogm_can_aggregate() argument
447 int aggregated_bytes = forw_packet->packet_len + packet_len; in batadv_iv_ogm_can_aggregate()
452 batadv_ogm_packet = (struct batadv_ogm_packet *)forw_packet->skb->data; in batadv_iv_ogm_can_aggregate()
464 if (!time_before(send_time, forw_packet->send_time) || in batadv_iv_ogm_can_aggregate()
465 !time_after_eq(aggregation_end_time, forw_packet->send_time)) in batadv_iv_ogm_can_aggregate()
472 if (forw_packet->if_outgoing != if_outgoing) in batadv_iv_ogm_can_aggregate()
496 (!forw_packet->own || in batadv_iv_ogm_can_aggregate()
497 forw_packet->if_incoming == primary_if)) { in batadv_iv_ogm_can_aggregate()
507 forw_packet->if_incoming == if_incoming && in batadv_iv_ogm_can_aggregate()
514 (forw_packet->own && in batadv_iv_ogm_can_aggregate()
515 forw_packet->if_incoming != primary_if))) { in batadv_iv_ogm_can_aggregate()
1686 struct batadv_forw_packet *forw_packet; in batadv_iv_send_outstanding_bat_ogm_packet() local
1691 forw_packet = container_of(delayed_work, struct batadv_forw_packet, in batadv_iv_send_outstanding_bat_ogm_packet()
1693 bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface); in batadv_iv_send_outstanding_bat_ogm_packet()
1700 batadv_iv_ogm_emit(forw_packet); in batadv_iv_send_outstanding_bat_ogm_packet()
1710 if (forw_packet->own && in batadv_iv_send_outstanding_bat_ogm_packet()
1711 forw_packet->if_incoming == forw_packet->if_outgoing) in batadv_iv_send_outstanding_bat_ogm_packet()
1712 batadv_iv_ogm_schedule(forw_packet->if_incoming); in batadv_iv_send_outstanding_bat_ogm_packet()
1716 if (batadv_forw_packet_steal(forw_packet, in batadv_iv_send_outstanding_bat_ogm_packet()
1718 batadv_forw_packet_free(forw_packet, dropped); in batadv_iv_send_outstanding_bat_ogm_packet()