Home
last modified time | relevance | path

Searched refs:mesh_iface (Results 1 – 23 of 23) sorted by relevance

/linux/net/batman-adv/
H A Dhard-interface.c66 netdev_put(hard_iface->mesh_iface, &hard_iface->meshif_dev_tracker); in batadv_hardif_release()
82 struct net_device *mesh_iface; in batadv_hardif_get_by_netdev() local
86 mesh_iface = netdev_master_upper_dev_get(net_dev); in batadv_hardif_get_by_netdev()
87 if (!mesh_iface || !batadv_meshif_is_valid(mesh_iface)) in batadv_hardif_get_by_netdev()
90 hard_iface = netdev_lower_dev_get_private(mesh_iface, net_dev); in batadv_hardif_get_by_netdev()
263 net = dev_net(hard_iface->mesh_iface); in __batadv_get_real_netdev()
490 batadv_hardif_get_active(struct net_device *mesh_iface) in batadv_hardif_get_active() argument
496 netdev_for_each_lower_private_rcu(mesh_iface, hard_iface, iter) { in batadv_hardif_get_active()
592 struct net_device *mesh_iface = hard_iface->mesh_iface; in batadv_check_known_mac_addr() local
596 netdev_for_each_lower_private(mesh_iface, tmp_hard_iface, iter) { in batadv_check_known_mac_addr()
[all …]
H A Dnetlink.c235 struct net_device *mesh_iface = bat_priv->mesh_iface; in batadv_netlink_mesh_fill() local
247 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, mesh_iface->ifindex) || in batadv_netlink_mesh_fill()
248 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, mesh_iface->name) || in batadv_netlink_mesh_fill()
250 mesh_iface->dev_addr) || in batadv_netlink_mesh_fill()
393 dev_net(bat_priv->mesh_iface), msg, 0, in batadv_netlink_notify_mesh()
476 batadv_bla_status_update(bat_priv->mesh_iface); in batadv_netlink_set_mesh()
486 batadv_dat_status_update(bat_priv->mesh_iface); in batadv_netlink_set_mesh()
496 batadv_update_min_mtu(bat_priv->mesh_iface); in batadv_netlink_set_mesh()
673 dev_net(bat_priv->mesh_iface), msg, 0, in batadv_netlink_tpmeter_notify()
799 bat_priv->mesh_iface->ifindex)) in batadv_netlink_hardif_fill()
[all …]
H A Dmesh-interface.c209 * @mesh_iface: the mesh interface the frame was queued on
214 struct net_device *mesh_iface) in batadv_interface_tx() argument
218 struct batadv_priv *bat_priv = netdev_priv(mesh_iface); in batadv_interface_tx()
249 netif_trans_update(mesh_iface); in batadv_interface_tx()
286 client_added = batadv_tt_local_add(mesh_iface, ethhdr->h_source, in batadv_interface_tx()
440 * @mesh_iface: local interface which will receive the ethernet frame
441 * @skb: ethernet frame for @mesh_iface
445 * Sends an ethernet frame to the receive path of the local @mesh_iface.
455 void batadv_interface_rx(struct net_device *mesh_iface, in batadv_interface_rx()
459 struct batadv_priv *bat_priv = netdev_priv(mesh_iface); in batadv_interface_rx()
452 batadv_interface_rx(struct net_device * mesh_iface,struct sk_buff * skb,int hdr_size,struct batadv_orig_node * orig_node) batadv_interface_rx() argument
1151 batadv_meshif_destroy_netlink(struct net_device * mesh_iface,struct list_head * head) batadv_meshif_destroy_netlink() argument
[all...]
H A Dmulticast.c84 static struct net_device *batadv_mcast_get_bridge(struct net_device *mesh_iface) in batadv_mcast_get_bridge() argument
86 struct net_device *upper = mesh_iface; in batadv_mcast_get_bridge()
167 struct net_device *dev = bridge ? bridge : bat_priv->mesh_iface; in batadv_mcast_mla_rtr_flags_meshif_get()
197 struct net_device *dev = bat_priv->mesh_iface; in batadv_mcast_mla_rtr_flags_bridge_get()
252 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in batadv_mcast_mla_forw_flags_get()
276 struct net_device *dev = bat_priv->mesh_iface; in batadv_mcast_mla_flags_get()
728 if (!batadv_tt_local_add(bat_priv->mesh_iface, in batadv_mcast_mla_tt_add()
766 batadv_info(bat_priv->mesh_iface, "%s Querier appeared\n", in batadv_mcast_querier_log()
769 batadv_info(bat_priv->mesh_iface, in batadv_mcast_querier_log()
773 batadv_info(bat_priv->mesh_iface, in batadv_mcast_querier_log()
[all …]
H A Dhard-interface.h73 struct net_device *mesh_iface);
75 int batadv_hardif_min_mtu(struct net_device *mesh_iface);
76 void batadv_update_min_mtu(struct net_device *mesh_iface);
H A Dbat_v_elp.c85 struct net_device *mesh_iface = hard_iface->mesh_iface; in batadv_v_elp_get_throughput() local
187 batadv_info(mesh_iface, in batadv_v_elp_get_throughput()
240 bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_elp_wifi_neigh_probe()
305 bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_elp_periodic_work()
485 netdev_for_each_lower_private_rcu(primary_iface->mesh_iface, hard_iface, iter) in batadv_v_elp_primary_iface_set()
558 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_v_elp_packet_recv()
H A Doriginator.c571 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_hardif_neigh_create()
763 struct net_device *mesh_iface; in batadv_hardif_neigh_dump() local
767 mesh_iface = batadv_netlink_get_meshif(cb); in batadv_hardif_neigh_dump()
768 if (IS_ERR(mesh_iface)) in batadv_hardif_neigh_dump()
769 return PTR_ERR(mesh_iface); in batadv_hardif_neigh_dump()
771 bat_priv = netdev_priv(mesh_iface); in batadv_hardif_neigh_dump()
809 dev_put(mesh_iface); in batadv_hardif_neigh_dump()
1240 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in batadv_purge_orig_node()
1338 struct net_device *mesh_iface; in batadv_orig_dump() local
1342 mesh_iface = batadv_netlink_get_meshif(cb); in batadv_orig_dump()
[all …]
H A Dmain.c185 * @mesh_iface: netdev struct of the mesh interface
189 int batadv_mesh_init(struct net_device *mesh_iface) in batadv_mesh_init() argument
191 struct batadv_priv *bat_priv = netdev_priv(mesh_iface); in batadv_mesh_init()
288 * @mesh_iface: netdev struct of the mesh interface
290 void batadv_mesh_free(struct net_device *mesh_iface) in batadv_mesh_free() argument
292 struct batadv_priv *bat_priv = netdev_priv(mesh_iface); in batadv_mesh_free()
351 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in batadv_is_my_mac()
507 bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_batman_skb_recv()
721 bat_kobj = &bat_priv->mesh_iface->dev.kobj; in batadv_throw_uevent()
H A Drouting.c410 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_icmp_packet()
743 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_route_unicast_packet()
1011 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_unhandled_unicast_packet()
1042 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_unicast_packet()
1120 batadv_interface_rx(recv_if->mesh_iface, skb, hdr_size, in batadv_recv_unicast_packet()
1149 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_unicast_tvlv()
1205 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_frag_packet()
1266 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_bcast_packet()
1362 batadv_interface_rx(recv_if->mesh_iface, skb, hdr_size, orig_node); in batadv_recv_bcast_packet()
1395 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_recv_mcast_packet()
[all …]
H A Dtranslation-table.h19 bool batadv_tt_local_add(struct net_device *mesh_iface, const u8 *addr,
48 void batadv_tt_local_resize_to_mtu(struct net_device *mesh_iface);
H A Dgateway_client.c519 struct net_device *mesh_iface; in batadv_gw_dump() local
523 mesh_iface = batadv_netlink_get_meshif(cb); in batadv_gw_dump()
524 if (IS_ERR(mesh_iface)) in batadv_gw_dump()
525 return PTR_ERR(mesh_iface); in batadv_gw_dump()
527 bat_priv = netdev_priv(mesh_iface); in batadv_gw_dump()
546 dev_put(mesh_iface); in batadv_gw_dump()
H A Dbat_v_ogm.c125 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_ogm_send_to_if()
243 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_ogm_queue_on_if()
312 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in batadv_v_ogm_send_meshif()
416 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_ogm_iface_enable()
450 struct batadv_priv *bat_priv = netdev_priv(primary_iface->mesh_iface); in batadv_v_ogm_primary_iface_set()
877 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_v_ogm_process()
950 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in batadv_v_ogm_process()
1010 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_v_ogm_packet_recv()
H A Dbat_iv_ogm.c410 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_iv_ogm_send_to_if()
628 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_iv_ogm_aggregate_new()
805 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_iv_ogm_forward()
858 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_iv_ogm_slide_own_bcast_window()
897 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_iv_ogm_schedule_buff()
969 netdev_for_each_lower_private_rcu(hard_iface->mesh_iface, tmp_hard_iface, iter) { in batadv_iv_ogm_schedule_buff()
1246 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_iv_ogm_calc_tq()
1393 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_iv_ogm_update_seqnos()
1521 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_iv_ogm_process_per_outif()
1759 struct batadv_priv *bat_priv = netdev_priv(if_incoming->mesh_iface); in batadv_iv_ogm_process()
[all …]
H A Dbridge_loop_avoidance.c358 primary_if->mesh_iface, in batadv_bla_send_claim()
436 skb->protocol = eth_type_trans(skb, primary_if->mesh_iface); in batadv_bla_send_claim()
463 batadv_info(bat_priv->mesh_iface, in batadv_bla_loopdetect_report()
2305 struct net_device *mesh_iface; in batadv_bla_claim_dump()
2312 mesh_iface = batadv_netlink_get_meshif(cb); in batadv_bla_claim_dump()
2313 if (IS_ERR(mesh_iface)) in batadv_bla_claim_dump()
2314 return PTR_ERR(mesh_iface); in batadv_bla_claim_dump()
2316 bat_priv = netdev_priv(mesh_iface); in batadv_bla_claim_dump()
2340 dev_put(mesh_iface); in batadv_bla_claim_dump()
2466 struct net_device *mesh_iface; in batadv_bla_backbone_dump()
2303 struct net_device *mesh_iface; batadv_bla_claim_dump() local
2464 struct net_device *mesh_iface; batadv_bla_backbone_dump() local
[all...]
H A Dmain.h231 int batadv_mesh_init(struct net_device *mesh_iface);
232 void batadv_mesh_free(struct net_device *mesh_iface);
H A Ddistributed-arp-table.c1027 struct net_device *mesh_iface; in batadv_dat_cache_dump()
1034 mesh_iface = batadv_netlink_get_meshif(cb); in batadv_dat_cache_dump()
1035 if (IS_ERR(mesh_iface)) in batadv_dat_cache_dump()
1036 return PTR_ERR(mesh_iface); in batadv_dat_cache_dump()
1038 bat_priv = netdev_priv(mesh_iface); in batadv_dat_cache_dump()
1064 dev_put(mesh_iface);
1205 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_dst, bat_priv->mesh_iface, in batadv_dat_arp_create_reply()
1237 struct net_device *mesh_iface = bat_priv->mesh_iface; in batadv_dat_snoop_outgoing_arp_request()
1310 skb_new->protocol = eth_type_trans(skb_new, mesh_iface); in batadv_dat_snoop_outgoing_arp_request()
1019 struct net_device *mesh_iface; batadv_dat_cache_dump() local
1229 struct net_device *mesh_iface = bat_priv->mesh_iface; batadv_dat_snoop_outgoing_arp_request() local
[all...]
H A Dtranslation-table.c613 bool batadv_tt_local_add(struct net_device *mesh_iface, const u8 *addr, in batadv_tt_local_add() argument
616 struct batadv_priv *bat_priv = netdev_priv(mesh_iface); in batadv_tt_local_add()
620 struct net *net = dev_net(mesh_iface); in batadv_tt_local_add()
682 net_ratelimited_function(batadv_info, mesh_iface, in batadv_tt_local_add()
695 net_ratelimited_function(batadv_info, mesh_iface, in batadv_tt_local_add()
725 if (batadv_compare_eth(addr, mesh_iface->dev_addr) || in batadv_tt_local_add()
1034 if (tt_diff_len > bat_priv->mesh_iface->mtu) { in batadv_tt_tvlv_container_update()
1210 struct net_device *mesh_iface; in batadv_tt_local_dump() local
1217 mesh_iface = batadv_netlink_get_meshif(cb); in batadv_tt_local_dump()
1218 if (IS_ERR(mesh_iface)) in batadv_tt_local_dump()
[all …]
H A Dmesh-interface.h18 void batadv_interface_rx(struct net_device *mesh_iface,
H A Dtrace.h37 __string(device, bat_priv->mesh_iface->name)
H A Dbat_v.c53 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_iface_activate()
126 struct batadv_priv *bat_priv = netdev_priv(hard_iface->mesh_iface); in batadv_v_iface_update_mac()
262 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in batadv_v_neigh_dump()
H A Dsend.c925 netdev_for_each_lower_private_rcu(bat_priv->mesh_iface, hard_iface, iter) { in __batadv_forw_bcast_packet()
1053 bat_priv = netdev_priv(forw_packet->if_incoming->mesh_iface); in batadv_send_outstanding_bcast_packet()
H A Dtypes.h241 * @mesh_iface: the batman-adv interface which uses this network
244 struct net_device *mesh_iface; member
246 /** @meshif_dev_tracker: device tracker for @mesh_iface */
535 /** @bat_priv: pointer to mesh_iface this orig node belongs to */
1539 /** @mesh_iface: net device which holds this struct as private data */
1540 struct net_device *mesh_iface; member
1776 /** @bat_priv: pointer to mesh_iface this backbone gateway belongs to */
H A Dfragmentation.c406 struct batadv_priv *bat_priv = netdev_priv(recv_if->mesh_iface); in batadv_frag_skb_fwd()