/net/batman-adv/ |
D | hard-interface.c | 232 batadv_hardif_get_active(const struct net_device *soft_iface) in batadv_hardif_get_active() argument 238 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_get_active() 330 static void batadv_hardif_recalc_extra_skbroom(struct net_device *soft_iface) in batadv_hardif_recalc_extra_skbroom() argument 343 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_recalc_extra_skbroom() 360 soft_iface->needed_headroom = needed_headroom; in batadv_hardif_recalc_extra_skbroom() 361 soft_iface->needed_tailroom = lower_tailroom; in batadv_hardif_recalc_extra_skbroom() 364 int batadv_hardif_min_mtu(struct net_device *soft_iface) in batadv_hardif_min_mtu() argument 366 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_hardif_min_mtu() 376 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_min_mtu() 411 void batadv_update_min_mtu(struct net_device *soft_iface) in batadv_update_min_mtu() argument [all …]
|
D | netlink.c | 129 batadv_netlink_mesh_info_put(struct sk_buff *msg, struct net_device *soft_iface) in batadv_netlink_mesh_info_put() argument 131 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_netlink_mesh_info_put() 139 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_info_put() 140 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || in batadv_netlink_mesh_info_put() 142 soft_iface->dev_addr) || in batadv_netlink_mesh_info_put() 187 struct net_device *soft_iface; in batadv_netlink_get_mesh_info() local 200 soft_iface = dev_get_by_index(net, ifindex); in batadv_netlink_get_mesh_info() 201 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_netlink_get_mesh_info() 220 ret = batadv_netlink_mesh_info_put(msg, soft_iface); in batadv_netlink_get_mesh_info() 223 if (soft_iface) in batadv_netlink_get_mesh_info() [all …]
|
D | soft-interface.c | 185 struct net_device *soft_iface) in batadv_interface_tx() argument 188 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_tx() 212 netif_trans_update(soft_iface); in batadv_interface_tx() 241 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 405 void batadv_interface_rx(struct net_device *soft_iface, in batadv_interface_rx() argument 410 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_rx() 450 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_interface_rx() 463 soft_iface->last_rx = jiffies; in batadv_interface_rx() 590 err = batadv_sysfs_add_vlan(bat_priv->soft_iface, vlan); in batadv_softif_create_vlan() 604 batadv_tt_local_add(bat_priv->soft_iface, in batadv_softif_create_vlan() [all …]
|
D | originator.c | 522 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_hardif_neigh_create() 743 struct net_device *soft_iface; in batadv_hardif_neigh_dump() local 755 soft_iface = dev_get_by_index(net, ifindex); in batadv_hardif_neigh_dump() 756 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_hardif_neigh_dump() 761 bat_priv = netdev_priv(soft_iface); in batadv_hardif_neigh_dump() 781 if (hardif->soft_iface != soft_iface) { in batadv_hardif_neigh_dump() 803 if (soft_iface) in batadv_hardif_neigh_dump() 804 dev_put(soft_iface); in batadv_hardif_neigh_dump() 1266 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_purge_orig_node() 1389 if (!hard_iface || !hard_iface->soft_iface) { in batadv_orig_hardif_seq_print_text() [all …]
|
D | main.c | 140 int batadv_mesh_init(struct net_device *soft_iface) in batadv_mesh_init() argument 142 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init() 213 batadv_mesh_free(soft_iface); in batadv_mesh_init() 217 void batadv_mesh_free(struct net_device *soft_iface) in batadv_mesh_free() argument 219 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_free() 273 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_is_my_mac() 445 if (!hard_iface->soft_iface) in batadv_batman_skb_recv() 448 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_batman_skb_recv()
|
D | multicast.c | 73 static struct net_device *batadv_mcast_get_bridge(struct net_device *soft_iface) in batadv_mcast_get_bridge() argument 75 struct net_device *upper = soft_iface; in batadv_mcast_get_bridge() 311 if (!batadv_tt_local_add(bat_priv->soft_iface, in batadv_mcast_mla_tt_add() 331 struct net_device *upper = bat_priv->soft_iface; in batadv_mcast_has_bridge() 369 batadv_info(bat_priv->soft_iface, "%s Querier appeared\n", in batadv_mcast_querier_log() 372 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log() 376 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log() 473 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_tvlv_update() 543 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_mcast_mla_update() local 550 ret = batadv_mcast_mla_softif_get(soft_iface, &mcast_list); in batadv_mcast_mla_update() [all …]
|
D | send.c | 78 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet() 611 struct net_device *soft_iface; in batadv_send_outstanding_bcast_packet() local 617 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_send_outstanding_bcast_packet() 618 bat_priv = netdev_priv(soft_iface); in batadv_send_outstanding_bcast_packet() 633 if (hard_iface->soft_iface != soft_iface) in batadv_send_outstanding_bcast_packet()
|
D | bat_v_elp.c | 132 batadv_info(hard_iface->soft_iface, in batadv_v_elp_get_throughput() 183 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_elp_wifi_neigh_probe() 249 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_elp_periodic_work() 412 if (primary_iface->soft_iface != hard_iface->soft_iface) in batadv_v_elp_primary_iface_set() 491 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_elp_packet_recv()
|
D | bat_v_ogm.c | 117 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if() 179 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_send() 222 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_iface_enable() 235 struct batadv_priv *bat_priv = netdev_priv(primary_iface->soft_iface); in batadv_v_ogm_primary_iface_set() 646 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_process() 713 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_process() 746 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_packet_recv()
|
D | bridge_loop_avoidance.c | 352 struct net_device *soft_iface; in batadv_bla_send_claim() local 365 soft_iface = primary_if->soft_iface; in batadv_bla_send_claim() 370 primary_if->soft_iface, in batadv_bla_send_claim() 448 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_bla_send_claim() 452 soft_iface->last_rx = jiffies; in batadv_bla_send_claim() 477 batadv_info(bat_priv->soft_iface, in batadv_bla_loopdetect_report() 2182 struct net_device *soft_iface; in batadv_bla_claim_dump() local 2196 soft_iface = dev_get_by_index(net, ifindex); in batadv_bla_claim_dump() 2197 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_bla_claim_dump() 2202 bat_priv = netdev_priv(soft_iface); in batadv_bla_claim_dump() [all …]
|
D | bat_iv_ogm.c | 473 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_send_to_if() 537 struct net_device *soft_iface; in batadv_iv_ogm_emit() local 544 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_iv_ogm_emit() 549 if (WARN_ON(forw_packet->if_outgoing->soft_iface != soft_iface)) in batadv_iv_ogm_emit() 680 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_aggregate_new() 834 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_forward() 887 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_slide_own_bcast_window() 918 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_schedule() 978 if (tmp_hard_iface->soft_iface != hard_iface->soft_iface) in batadv_iv_ogm_schedule() 1177 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_calc_tq() [all …]
|
D | soft-interface.h | 31 void batadv_interface_rx(struct net_device *soft_iface, 35 void batadv_softif_destroy_sysfs(struct net_device *soft_iface);
|
D | gateway_client.c | 526 struct net_device *soft_iface; in batadv_gw_dump() local 536 soft_iface = dev_get_by_index(net, ifindex); in batadv_gw_dump() 537 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_gw_dump() 542 bat_priv = netdev_priv(soft_iface); in batadv_gw_dump() 562 if (soft_iface) in batadv_gw_dump() 563 dev_put(soft_iface); in batadv_gw_dump()
|
D | routing.c | 342 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_icmp_packet() 657 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_route_unicast_packet() 900 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unhandled_unicast_packet() 918 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unicast_packet() 975 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, in batadv_recv_unicast_packet() 999 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unicast_tvlv() 1052 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_frag_packet() 1101 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_bcast_packet() 1187 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, orig_node); in batadv_recv_bcast_packet()
|
D | hard-interface.h | 63 int batadv_hardif_min_mtu(struct net_device *soft_iface); 64 void batadv_update_min_mtu(struct net_device *soft_iface);
|
D | translation-table.h | 31 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, 58 void batadv_tt_local_resize_to_mtu(struct net_device *soft_iface);
|
D | translation-table.c | 641 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, in batadv_tt_local_add() argument 644 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_tt_local_add() 647 struct net *net = dev_net(soft_iface); in batadv_tt_local_add() 701 net_ratelimited_function(batadv_info, soft_iface, in batadv_tt_local_add() 714 net_ratelimited_function(batadv_info, soft_iface, in batadv_tt_local_add() 744 if (batadv_compare_eth(addr, soft_iface->dev_addr) || in batadv_tt_local_add() 995 if (tt_diff_len > bat_priv->soft_iface->mtu) in batadv_tt_tvlv_container_update() 1223 struct net_device *soft_iface; in batadv_tt_local_dump() local 1238 soft_iface = dev_get_by_index(net, ifindex); in batadv_tt_local_dump() 1239 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_tt_local_dump() [all …]
|
D | bat_v.c | 58 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate() 111 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac() 202 if (hard_iface->soft_iface != net_dev) in batadv_v_neigh_print() 329 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_neigh_dump() 676 if (!batadv_parse_throughput(bat_priv->soft_iface, buff, in batadv_v_store_sel_class()
|
D | main.h | 211 int batadv_mesh_init(struct net_device *soft_iface); 212 void batadv_mesh_free(struct net_device *soft_iface);
|
D | sysfs.c | 221 bat_priv->soft_iface); \ 573 bat_priv->soft_iface); in batadv_store_gw_sel_class() 893 ifname = hard_iface->soft_iface->name; in batadv_show_mesh_iface() 934 if ((hard_iface->soft_iface) && in batadv_store_mesh_iface_finish() 935 (strncmp(hard_iface->soft_iface->name, ifname, IFNAMSIZ) == 0)) in batadv_store_mesh_iface_finish() 1189 bat_kobj = &bat_priv->soft_iface->dev.kobj; in batadv_throw_uevent()
|
D | distributed-arp-table.c | 1011 bat_priv->soft_iface, ip_dst, hw_src, in batadv_dat_snoop_outgoing_arp_request() 1025 bat_priv->soft_iface); in batadv_dat_snoop_outgoing_arp_request() 1028 bat_priv->soft_iface->last_rx = jiffies; in batadv_dat_snoop_outgoing_arp_request() 1088 bat_priv->soft_iface, ip_dst, hw_src, in batadv_dat_snoop_incoming_arp_request()
|
D | distributed-arp-table.h | 157 static inline void batadv_arp_change_timeout(struct net_device *soft_iface, in batadv_arp_change_timeout() argument
|
D | types.h | 149 struct net_device *soft_iface; member 1036 struct net_device *soft_iface; member
|
D | network-coding.c | 1423 struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_dst_search() 1510 const struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_forward() 1808 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_nc_recv_coded_packet()
|
D | fragmentation.c | 354 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_frag_skb_fwd()
|