Home
last modified time | relevance | path

Searched refs:soft_iface (Results 1 – 14 of 14) sorted by relevance

/linux-3.4.99/net/batman-adv/
Dhard-interface.c89 static struct hard_iface *hardif_get_active(const struct net_device *soft_iface) in hardif_get_active() argument
95 if (hard_iface->soft_iface != soft_iface) in hardif_get_active()
185 int hardif_min_mtu(struct net_device *soft_iface) in hardif_min_mtu() argument
187 const struct bat_priv *bat_priv = netdev_priv(soft_iface); in hardif_min_mtu()
202 if (hard_iface->soft_iface != soft_iface) in hardif_min_mtu()
214 void update_min_mtu(struct net_device *soft_iface) in update_min_mtu() argument
218 min_mtu = hardif_min_mtu(soft_iface); in update_min_mtu()
219 if (soft_iface->mtu != min_mtu) in update_min_mtu()
220 soft_iface->mtu = min_mtu; in update_min_mtu()
231 bat_priv = netdev_priv(hard_iface->soft_iface); in hardif_activate_interface()
[all …]
Dsoft-interface.c558 static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface) in interface_tx() argument
561 struct bat_priv *bat_priv = netdev_priv(soft_iface); in interface_tx()
574 soft_iface->trans_start = jiffies; in interface_tx()
586 softif_batman_recv(skb, soft_iface, vid); in interface_tx()
599 tt_local_add(soft_iface, ethhdr->h_source, skb->skb_iif); in interface_tx()
685 void interface_rx(struct net_device *soft_iface, in interface_rx() argument
689 struct bat_priv *bat_priv = netdev_priv(soft_iface); in interface_rx()
746 skb->protocol = eth_type_trans(skb, soft_iface); in interface_rx()
757 soft_iface->last_rx = jiffies; in interface_rx()
811 struct net_device *soft_iface; in softif_create() local
[all …]
Dmain.c86 int mesh_init(struct net_device *soft_iface) in mesh_init() argument
88 struct bat_priv *bat_priv = netdev_priv(soft_iface); in mesh_init()
116 tt_local_add(soft_iface, soft_iface->dev_addr, NULL_IFINDEX); in mesh_init()
126 mesh_free(soft_iface); in mesh_init()
133 void mesh_free(struct net_device *soft_iface) in mesh_free() argument
135 struct bat_priv *bat_priv = netdev_priv(soft_iface); in mesh_free()
Dsend.c109 if (new_len > hard_iface->soft_iface->mtu) in prepare_packet_buffer()
133 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in schedule_bat_ogm()
267 struct net_device *soft_iface = forw_packet->if_incoming->soft_iface; in send_outstanding_bcast_packet() local
268 struct bat_priv *bat_priv = netdev_priv(soft_iface); in send_outstanding_bcast_packet()
280 if (hard_iface->soft_iface != soft_iface) in send_outstanding_bcast_packet()
312 bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface); in send_outstanding_bat_ogm_packet()
Dsoft-interface.h28 void interface_rx(struct net_device *soft_iface,
32 void softif_destroy(struct net_device *soft_iface);
Dbat_iv_ogm.c105 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in bat_iv_ogm_send_to_if()
162 struct net_device *soft_iface; in bat_iv_ogm_emit() local
177 soft_iface = forw_packet->if_incoming->soft_iface; in bat_iv_ogm_emit()
178 bat_priv = netdev_priv(soft_iface); in bat_iv_ogm_emit()
213 if (hard_iface->soft_iface != soft_iface) in bat_iv_ogm_emit()
312 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in bat_iv_ogm_aggregate_new()
466 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in bat_iv_ogm_forward()
530 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in bat_iv_ogm_schedule()
720 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in bat_iv_ogm_calc_tq()
828 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in bat_iv_ogm_update_seqnos()
[all …]
Dhard-interface.h42 int hardif_min_mtu(struct net_device *soft_iface);
43 void update_min_mtu(struct net_device *soft_iface);
Drouting.c35 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in slide_own_bcast_window()
249 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in recv_bat_ogm_packet()
393 struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); in recv_icmp_packet()
575 struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); in recv_tt_query()
650 struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); in recv_roam_adv()
805 struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); in route_unicast_packet()
949 struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); in recv_unicast_packet()
963 interface_rx(recv_if->soft_iface, skb, recv_if, hdr_size); in recv_unicast_packet()
972 struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); in recv_ucast_frag_packet()
998 interface_rx(recv_if->soft_iface, new_skb, recv_if, in recv_ucast_frag_packet()
[all …]
Dmain.h148 int mesh_init(struct net_device *soft_iface);
149 void mesh_free(struct net_device *soft_iface);
Doriginator.c91 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in create_neighbor()
513 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in orig_hash_add_if()
595 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in orig_hash_del_if()
631 if (hard_iface->soft_iface != hard_iface_tmp->soft_iface) in orig_hash_del_if()
Dbat_sysfs.c483 "none" : hard_iface->soft_iface->name); in show_mesh_iface()
519 if ((hard_iface->soft_iface) && in store_mesh_iface()
520 (strncmp(hard_iface->soft_iface->name, buff, IFNAMSIZ) == 0)) in store_mesh_iface()
642 bat_kobj = &primary_if->soft_iface->dev.kobj; in throw_uevent()
Dtranslation-table.h29 void tt_local_add(struct net_device *soft_iface, const uint8_t *addr,
Dtranslation-table.c179 void tt_local_add(struct net_device *soft_iface, const uint8_t *addr, in tt_local_add() argument
182 struct bat_priv *bat_priv = netdev_priv(soft_iface); in tt_local_add()
210 if (compare_eth(addr, soft_iface->dev_addr)) in tt_local_add()
1043 if (tt_query_size + tt_len > primary_if->soft_iface->mtu) { in tt_response_fill_table()
1044 tt_len = primary_if->soft_iface->mtu - tt_query_size; in tt_response_fill_table()
Dtypes.h48 struct net_device *soft_iface; member