Searched refs:if_outgoing (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/net/batman-adv/
H A Doriginator.c160 if (neigh_ifinfo->if_outgoing != BATADV_IF_DEFAULT) batadv_neigh_ifinfo_release()
161 batadv_hardif_free_ref(neigh_ifinfo->if_outgoing); batadv_neigh_ifinfo_release()
210 * @if_outgoing: the interface where the payload packet has been received or
219 const struct batadv_hard_iface *if_outgoing) batadv_orig_router_get()
226 if (orig_ifinfo->if_outgoing != if_outgoing) batadv_orig_router_get()
243 * @if_outgoing: the interface for which the ifinfo should be acquired
251 struct batadv_hard_iface *if_outgoing) batadv_orig_ifinfo_get()
258 if (tmp->if_outgoing != if_outgoing) batadv_orig_ifinfo_get()
275 * @if_outgoing: the interface for which the ifinfo should be acquired
277 * Returns NULL in case of failure or the orig_ifinfo object for the if_outgoing
285 struct batadv_hard_iface *if_outgoing) batadv_orig_ifinfo_new()
292 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, if_outgoing); batadv_orig_ifinfo_new()
300 if (if_outgoing != BATADV_IF_DEFAULT && batadv_orig_ifinfo_new()
301 !atomic_inc_not_zero(&if_outgoing->refcount)) { batadv_orig_ifinfo_new()
310 orig_ifinfo->if_outgoing = if_outgoing; batadv_orig_ifinfo_new()
323 * @if_outgoing: the interface for which the ifinfo should be acquired
331 struct batadv_hard_iface *if_outgoing) batadv_neigh_ifinfo_get()
339 if (tmp_neigh_ifinfo->if_outgoing != if_outgoing) batadv_neigh_ifinfo_get()
356 * @if_outgoing: the interface for which the ifinfo should be acquired
359 * if_outgoing interface otherwise. The object is created and added to the list
366 struct batadv_hard_iface *if_outgoing) batadv_neigh_ifinfo_new()
372 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh, if_outgoing); batadv_neigh_ifinfo_new()
380 if (if_outgoing && !atomic_inc_not_zero(&if_outgoing->refcount)) { batadv_neigh_ifinfo_new()
388 neigh_ifinfo->if_outgoing = if_outgoing; batadv_neigh_ifinfo_new()
478 if (orig_ifinfo->if_outgoing != BATADV_IF_DEFAULT) batadv_orig_ifinfo_release()
479 batadv_hardif_free_ref(orig_ifinfo->if_outgoing); batadv_orig_ifinfo_release()
685 struct batadv_hard_iface *if_outgoing; batadv_purge_neigh_ifinfo() local
693 if_outgoing = neigh_ifinfo->if_outgoing; batadv_purge_neigh_ifinfo()
696 if (if_outgoing == BATADV_IF_DEFAULT) batadv_purge_neigh_ifinfo()
700 if ((if_outgoing->if_status != BATADV_IF_INACTIVE) && batadv_purge_neigh_ifinfo()
701 (if_outgoing->if_status != BATADV_IF_NOT_IN_USE) && batadv_purge_neigh_ifinfo()
702 (if_outgoing->if_status != BATADV_IF_TO_BE_REMOVED)) batadv_purge_neigh_ifinfo()
707 neigh->addr, if_outgoing->net_dev->name); batadv_purge_neigh_ifinfo()
728 struct batadv_hard_iface *if_outgoing; batadv_purge_orig_ifinfo() local
737 if_outgoing = orig_ifinfo->if_outgoing; batadv_purge_orig_ifinfo()
740 if (if_outgoing == BATADV_IF_DEFAULT) batadv_purge_orig_ifinfo()
744 if ((if_outgoing->if_status != BATADV_IF_INACTIVE) && batadv_purge_orig_ifinfo()
745 (if_outgoing->if_status != BATADV_IF_NOT_IN_USE) && batadv_purge_orig_ifinfo()
746 (if_outgoing->if_status != BATADV_IF_TO_BE_REMOVED)) batadv_purge_orig_ifinfo()
751 orig_node->orig, if_outgoing->net_dev->name); batadv_purge_orig_ifinfo()
830 * @if_outgoing: the interface for which the metric should be compared
837 struct batadv_hard_iface *if_outgoing) batadv_find_best_neighbor()
844 if (best && (bao->bat_neigh_cmp(neigh, if_outgoing, batadv_find_best_neighbor()
845 best, if_outgoing) <= 0)) batadv_find_best_neighbor()
218 batadv_orig_router_get(struct batadv_orig_node *orig_node, const struct batadv_hard_iface *if_outgoing) batadv_orig_router_get() argument
250 batadv_orig_ifinfo_get(struct batadv_orig_node *orig_node, struct batadv_hard_iface *if_outgoing) batadv_orig_ifinfo_get() argument
284 batadv_orig_ifinfo_new(struct batadv_orig_node *orig_node, struct batadv_hard_iface *if_outgoing) batadv_orig_ifinfo_new() argument
330 batadv_neigh_ifinfo_get(struct batadv_neigh_node *neigh, struct batadv_hard_iface *if_outgoing) batadv_neigh_ifinfo_get() argument
365 batadv_neigh_ifinfo_new(struct batadv_neigh_node *neigh, struct batadv_hard_iface *if_outgoing) batadv_neigh_ifinfo_new() argument
835 batadv_find_best_neighbor(struct batadv_priv *bat_priv, struct batadv_orig_node *orig_node, struct batadv_hard_iface *if_outgoing) batadv_find_best_neighbor() argument
H A Doriginator.h41 const struct batadv_hard_iface *if_outgoing);
44 struct batadv_hard_iface *if_outgoing);
47 struct batadv_hard_iface *if_outgoing);
52 struct batadv_hard_iface *if_outgoing);
55 struct batadv_hard_iface *if_outgoing);
H A Dbat_iv_ogm.c491 if (WARN_ON(!forw_packet->if_outgoing)) batadv_iv_ogm_emit()
494 if (WARN_ON(forw_packet->if_outgoing->soft_iface != soft_iface)) batadv_iv_ogm_emit()
505 batadv_iv_ogm_send_to_if(forw_packet, forw_packet->if_outgoing); batadv_iv_ogm_emit()
521 * @if_outgoing: interface for which the retransmission should be considered
532 const struct batadv_hard_iface *if_outgoing, batadv_iv_ogm_can_aggregate()
567 if (forw_packet->if_outgoing != if_outgoing) batadv_iv_ogm_can_aggregate()
619 * @if_outgoing: interface for which the retransmission should be considered
626 struct batadv_hard_iface *if_outgoing, batadv_iv_ogm_aggregate_new()
637 if (!atomic_inc_not_zero(&if_outgoing->refcount)) batadv_iv_ogm_aggregate_new()
680 forw_packet_aggr->if_outgoing = if_outgoing; batadv_iv_ogm_aggregate_new()
703 batadv_hardif_free_ref(if_outgoing); batadv_iv_ogm_aggregate_new()
734 * @if_outgoing: interface for which the retransmission should be considered
742 struct batadv_hard_iface *if_outgoing, batadv_iv_ogm_queue_add()
768 if_outgoing, batadv_iv_ogm_queue_add()
792 if_incoming, if_outgoing, batadv_iv_ogm_queue_add()
807 struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_forward()
852 if_incoming, if_outgoing, 0, batadv_iv_ogm_forward() local
964 * @if_outgoing: interface for which the retransmission should be considered
974 struct batadv_hard_iface *if_outgoing, batadv_iv_ogm_orig_update()
1008 if_outgoing); batadv_iv_ogm_orig_update()
1042 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); batadv_iv_ogm_orig_update()
1064 router = batadv_orig_router_get(orig_node, if_outgoing); batadv_iv_ogm_orig_update()
1069 router_ifinfo = batadv_neigh_ifinfo_get(router, if_outgoing); batadv_iv_ogm_orig_update()
1101 batadv_update_route(bat_priv, orig_node, if_outgoing, neigh_node); batadv_iv_ogm_orig_update()
1123 * @if_outgoing: interface for which the retransmission should be considered
1131 struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_calc_tq()
1181 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); batadv_iv_ogm_calc_tq()
1228 if (if_outgoing && (if_incoming == if_outgoing) && batadv_iv_ogm_calc_tq()
1229 batadv_is_wifi_netdev(if_outgoing->net_dev)) batadv_iv_ogm_calc_tq()
1243 "bidirectional: orig = %-15pM neigh = %-15pM => own_bcast = %2i, real recv = %2i, local tq: %3i, asym_penalty: %3i, iface_penalty: %3i, total tq: %3i, if_incoming = %s, if_outgoing = %s\n", batadv_iv_ogm_calc_tq()
1247 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT"); batadv_iv_ogm_calc_tq()
1267 * @if_outgoing: interface for which the retransmission should be considered
1275 struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_update_seqnos()
1296 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); batadv_iv_ogm_update_seqnos()
1316 if_outgoing); batadv_iv_ogm_update_seqnos()
1351 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT", batadv_iv_ogm_update_seqnos()
1370 * @if_outgoing: the interface for which the packet should be considered
1376 struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_process_per_outif()
1405 if_incoming, if_outgoing); batadv_iv_ogm_process_per_outif()
1422 router = batadv_orig_router_get(orig_node, if_outgoing); batadv_iv_ogm_process_per_outif()
1425 if_outgoing); batadv_iv_ogm_process_per_outif()
1426 router_ifinfo = batadv_neigh_ifinfo_get(router, if_outgoing); batadv_iv_ogm_process_per_outif()
1445 if (if_outgoing == BATADV_IF_DEFAULT) batadv_iv_ogm_process_per_outif()
1465 if_outgoing); batadv_iv_ogm_process_per_outif()
1478 if_outgoing); batadv_iv_ogm_process_per_outif()
1483 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); batadv_iv_ogm_process_per_outif()
1495 if_outgoing, dup_status); batadv_iv_ogm_process_per_outif()
1500 if (if_outgoing == BATADV_IF_DEFAULT) batadv_iv_ogm_process_per_outif()
1509 (if_incoming != if_outgoing)) { batadv_iv_ogm_process_per_outif()
1518 if_outgoing); batadv_iv_ogm_process_per_outif()
1542 if_incoming, if_outgoing); batadv_iv_ogm_process_per_outif()
1764 * @if_outgoing: outgoing interface for these entries
1771 struct batadv_hard_iface *if_outgoing, batadv_iv_ogm_orig_print_neigh()
1778 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); batadv_iv_ogm_orig_print_neigh()
1794 * @if_outgoing: the outgoing interface for which this should be printed
1798 struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_orig_print()
1820 if_outgoing); hlist_for_each_entry_rcu()
1825 if_outgoing); hlist_for_each_entry_rcu()
1843 batadv_iv_ogm_orig_print_neigh(orig_node, if_outgoing, hlist_for_each_entry_rcu()
527 batadv_iv_ogm_can_aggregate(const struct batadv_ogm_packet *new_bat_ogm_packet, struct batadv_priv *bat_priv, int packet_len, unsigned long send_time, bool directlink, const struct batadv_hard_iface *if_incoming, const struct batadv_hard_iface *if_outgoing, const struct batadv_forw_packet *forw_packet) batadv_iv_ogm_can_aggregate() argument
622 batadv_iv_ogm_aggregate_new(const unsigned char *packet_buff, int packet_len, unsigned long send_time, bool direct_link, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing, int own_packet) batadv_iv_ogm_aggregate_new() argument
738 batadv_iv_ogm_queue_add(struct batadv_priv *bat_priv, unsigned char *packet_buff, int packet_len, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing, int own_packet, unsigned long send_time) batadv_iv_ogm_queue_add() argument
801 batadv_iv_ogm_forward(struct batadv_orig_node *orig_node, const struct ethhdr *ethhdr, struct batadv_ogm_packet *batadv_ogm_packet, bool is_single_hop_neigh, bool is_from_best_next_hop, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_forward() argument
968 batadv_iv_ogm_orig_update(struct batadv_priv *bat_priv, struct batadv_orig_node *orig_node, struct batadv_orig_ifinfo *orig_ifinfo, const struct ethhdr *ethhdr, const struct batadv_ogm_packet *batadv_ogm_packet, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing, enum batadv_dup_status dup_status) batadv_iv_ogm_orig_update() argument
1127 batadv_iv_ogm_calc_tq(struct batadv_orig_node *orig_node, struct batadv_orig_node *orig_neigh_node, struct batadv_ogm_packet *batadv_ogm_packet, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_calc_tq() argument
1272 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, const struct batadv_ogm_packet *batadv_ogm_packet, const struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_update_seqnos() argument
1373 batadv_iv_ogm_process_per_outif(const struct sk_buff *skb, int ogm_offset, struct batadv_orig_node *orig_node, struct batadv_hard_iface *if_incoming, struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_process_per_outif() argument
1770 batadv_iv_ogm_orig_print_neigh(struct batadv_orig_node *orig_node, struct batadv_hard_iface *if_outgoing, struct seq_file *seq) batadv_iv_ogm_orig_print_neigh() argument
1796 batadv_iv_ogm_orig_print(struct batadv_priv *bat_priv, struct seq_file *seq, struct batadv_hard_iface *if_outgoing) batadv_iv_ogm_orig_print() argument
H A Dsend.c396 if (forw_packet->if_outgoing) batadv_forw_packet_free()
397 batadv_hardif_free_ref(forw_packet->if_outgoing); batadv_forw_packet_free()
461 forw_packet->if_outgoing = NULL; batadv_add_bcast_packet_to_list()
566 forw_packet->if_incoming == forw_packet->if_outgoing) batadv_send_outstanding_bat_ogm_packet()
628 (forw_packet->if_outgoing != hard_iface)) batadv_purge_outstanding_packets()
H A Dtypes.h109 * @if_outgoing: pointer to outgoing hard interface
119 struct batadv_hard_iface *if_outgoing; member in struct:batadv_orig_ifinfo
374 * @if_outgoing: pointer to outgoing hard interface
382 struct batadv_hard_iface *if_outgoing; member in struct:batadv_neigh_ifinfo
1092 * @if_outgoing: packet where the packet should be sent to, or NULL if
1105 struct batadv_hard_iface *if_outgoing; member in struct:batadv_forw_packet
H A Drouting.c485 cand->if_outgoing, batadv_find_router()

Completed in 154 milliseconds