Lines Matching refs:forw_packet
333 static void batadv_iv_ogm_send_to_if(struct batadv_forw_packet *forw_packet, in batadv_iv_ogm_send_to_if() argument
349 packet_pos = forw_packet->skb->data; in batadv_iv_ogm_send_to_if()
353 while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len, in batadv_iv_ogm_send_to_if()
358 if (forw_packet->direct_link_flags & BIT(packet_num) && in batadv_iv_ogm_send_to_if()
359 forw_packet->if_incoming == hard_iface) in batadv_iv_ogm_send_to_if()
364 if (packet_num > 0 || !forw_packet->own) in batadv_iv_ogm_send_to_if()
383 packet_pos = forw_packet->skb->data + buff_pos; in batadv_iv_ogm_send_to_if()
388 skb = skb_clone(forw_packet->skb, GFP_ATOMIC); in batadv_iv_ogm_send_to_if()
398 static void batadv_iv_ogm_emit(struct batadv_forw_packet *forw_packet) in batadv_iv_ogm_emit() argument
402 if (!forw_packet->if_incoming) { in batadv_iv_ogm_emit()
407 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_iv_ogm_emit()
409 if (WARN_ON(!forw_packet->if_outgoing)) in batadv_iv_ogm_emit()
412 if (forw_packet->if_outgoing->soft_iface != soft_iface) { in batadv_iv_ogm_emit()
417 if (forw_packet->if_incoming->if_status != BATADV_IF_ACTIVE) in batadv_iv_ogm_emit()
421 batadv_iv_ogm_send_to_if(forw_packet, forw_packet->if_outgoing); in batadv_iv_ogm_emit()
445 const struct batadv_forw_packet *forw_packet) in batadv_iv_ogm_can_aggregate() argument
448 int aggregated_bytes = forw_packet->packet_len + packet_len; in batadv_iv_ogm_can_aggregate()
453 batadv_ogm_packet = (struct batadv_ogm_packet *)forw_packet->skb->data; in batadv_iv_ogm_can_aggregate()
465 if (!time_before(send_time, forw_packet->send_time) || in batadv_iv_ogm_can_aggregate()
466 !time_after_eq(aggregation_end_time, forw_packet->send_time)) in batadv_iv_ogm_can_aggregate()
473 if (forw_packet->if_outgoing != if_outgoing) in batadv_iv_ogm_can_aggregate()
497 (!forw_packet->own || in batadv_iv_ogm_can_aggregate()
498 forw_packet->if_incoming == primary_if)) { in batadv_iv_ogm_can_aggregate()
508 forw_packet->if_incoming == if_incoming && in batadv_iv_ogm_can_aggregate()
515 (forw_packet->own && in batadv_iv_ogm_can_aggregate()
516 forw_packet->if_incoming != primary_if))) { in batadv_iv_ogm_can_aggregate()
1687 struct batadv_forw_packet *forw_packet; in batadv_iv_send_outstanding_bat_ogm_packet() local
1692 forw_packet = container_of(delayed_work, struct batadv_forw_packet, in batadv_iv_send_outstanding_bat_ogm_packet()
1694 bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface); in batadv_iv_send_outstanding_bat_ogm_packet()
1701 batadv_iv_ogm_emit(forw_packet); in batadv_iv_send_outstanding_bat_ogm_packet()
1711 if (forw_packet->own && in batadv_iv_send_outstanding_bat_ogm_packet()
1712 forw_packet->if_incoming == forw_packet->if_outgoing) in batadv_iv_send_outstanding_bat_ogm_packet()
1713 batadv_iv_ogm_schedule(forw_packet->if_incoming); in batadv_iv_send_outstanding_bat_ogm_packet()
1717 if (batadv_forw_packet_steal(forw_packet, in batadv_iv_send_outstanding_bat_ogm_packet()
1719 batadv_forw_packet_free(forw_packet, dropped); in batadv_iv_send_outstanding_bat_ogm_packet()