/kernel/linux/linux-5.10/net/batman-adv/ |
D | hard-interface.c | 236 if (!hard_iface || !hard_iface->soft_iface) in batadv_get_real_netdevice() 239 net = dev_net(hard_iface->soft_iface); in batadv_get_real_netdevice() 440 batadv_hardif_get_active(const struct net_device *soft_iface) in batadv_hardif_get_active() argument 446 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_get_active() 538 static void batadv_hardif_recalc_extra_skbroom(struct net_device *soft_iface) in batadv_hardif_recalc_extra_skbroom() argument 551 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_recalc_extra_skbroom() 571 soft_iface->needed_headroom = needed_headroom; in batadv_hardif_recalc_extra_skbroom() 572 soft_iface->needed_tailroom = lower_tailroom; in batadv_hardif_recalc_extra_skbroom() 582 int batadv_hardif_min_mtu(struct net_device *soft_iface) in batadv_hardif_min_mtu() argument 584 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_hardif_min_mtu() [all …]
|
D | soft-interface.c | 181 struct net_device *soft_iface) in batadv_interface_tx() argument 184 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_tx() 213 netif_trans_update(soft_iface); in batadv_interface_tx() 250 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 421 void batadv_interface_rx(struct net_device *soft_iface, in batadv_interface_rx() argument 426 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_rx() 466 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_interface_rx() 597 err = batadv_sysfs_add_vlan(bat_priv->soft_iface, vlan); in batadv_softif_create_vlan() 610 batadv_tt_local_add(bat_priv->soft_iface, in batadv_softif_create_vlan() 611 bat_priv->soft_iface->dev_addr, vid, in batadv_softif_create_vlan() [all …]
|
D | netlink.c | 232 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_netlink_mesh_fill() local 244 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_fill() 245 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || in batadv_netlink_mesh_fill() 247 soft_iface->dev_addr) || in batadv_netlink_mesh_fill() 398 dev_net(bat_priv->soft_iface), msg, 0, in batadv_netlink_notify_mesh() 481 batadv_bla_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 491 batadv_dat_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 499 batadv_update_min_mtu(bat_priv->soft_iface); in batadv_netlink_set_mesh() 601 batadv_nc_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 687 dev_net(bat_priv->soft_iface), msg, 0, in batadv_netlink_tpmeter_notify() [all …]
|
D | originator.c | 519 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() 1248 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_purge_orig_node() 1378 if (!hard_iface || !hard_iface->soft_iface) { in batadv_orig_hardif_seq_print_text() [all …]
|
D | main.c | 156 int batadv_mesh_init(struct net_device *soft_iface) in batadv_mesh_init() argument 158 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init() 264 void batadv_mesh_free(struct net_device *soft_iface) in batadv_mesh_free() argument 266 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_free() 320 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_is_my_mac() 503 if (!hard_iface->soft_iface) in batadv_batman_skb_recv() 506 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_batman_skb_recv() 729 bat_kobj = &bat_priv->soft_iface->dev.kobj; in batadv_throw_uevent()
|
D | multicast.c | 86 static struct net_device *batadv_mcast_get_bridge(struct net_device *soft_iface) in batadv_mcast_get_bridge() argument 88 struct net_device *upper = soft_iface; in batadv_mcast_get_bridge() 170 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get() 202 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get() 281 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_flags_get() 730 if (!batadv_tt_local_add(bat_priv->soft_iface, in batadv_mcast_mla_tt_add() 768 batadv_info(bat_priv->soft_iface, "%s Querier appeared\n", in batadv_mcast_querier_log() 771 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log() 775 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log() 905 struct net_device *soft_iface = bat_priv->soft_iface; in __batadv_mcast_mla_update() local [all …]
|
D | soft-interface.h | 20 void batadv_interface_rx(struct net_device *soft_iface, 24 void batadv_softif_destroy_sysfs(struct net_device *soft_iface);
|
D | bat_v_elp.c | 145 batadv_info(hard_iface->soft_iface, in batadv_v_elp_get_throughput() 196 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_elp_wifi_neigh_probe() 263 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_elp_periodic_work() 430 if (primary_iface->soft_iface != hard_iface->soft_iface) in batadv_v_elp_primary_iface_set() 509 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_elp_packet_recv()
|
D | trace.h | 41 __string(device, bat_priv->soft_iface->name) 47 __assign_str(device, bat_priv->soft_iface->name);
|
D | bat_iv_ogm.c | 337 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_send_to_if() 401 struct net_device *soft_iface; in batadv_iv_ogm_emit() local 408 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_iv_ogm_emit() 413 if (forw_packet->if_outgoing->soft_iface != soft_iface) { in batadv_iv_ogm_emit() 546 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_aggregate_new() 692 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_forward() 745 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_slide_own_bcast_window() 784 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_schedule_buff() 846 if (tmp_hard_iface->soft_iface != hard_iface->soft_iface) in batadv_iv_ogm_schedule_buff() 1076 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_calc_tq() [all …]
|
D | hard-interface.h | 103 int batadv_hardif_min_mtu(struct net_device *soft_iface); 104 void batadv_update_min_mtu(struct net_device *soft_iface);
|
D | bat_v_ogm.c | 124 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if() 240 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_queue_on_if() 303 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_send_softif() 409 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_iface_enable() 436 struct batadv_priv *bat_priv = netdev_priv(primary_iface->soft_iface); in batadv_v_ogm_primary_iface_set() 863 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_process() 937 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_process() 999 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_packet_recv()
|
D | send.c | 71 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet() 857 struct net_device *soft_iface; in batadv_send_outstanding_bcast_packet() local 868 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_send_outstanding_bcast_packet() 869 bat_priv = netdev_priv(soft_iface); in batadv_send_outstanding_bcast_packet() 886 if (hard_iface->soft_iface != soft_iface) in batadv_send_outstanding_bcast_packet()
|
D | bridge_loop_avoidance.c | 347 struct net_device *soft_iface; in batadv_bla_send_claim() local 360 soft_iface = primary_if->soft_iface; in batadv_bla_send_claim() 365 primary_if->soft_iface, in batadv_bla_send_claim() 443 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_bla_send_claim() 474 batadv_info(bat_priv->soft_iface, in batadv_bla_loopdetect_report() 2311 struct net_device *soft_iface; in batadv_bla_claim_dump() local 2324 soft_iface = dev_get_by_index(net, ifindex); in batadv_bla_claim_dump() 2325 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_bla_claim_dump() 2330 bat_priv = netdev_priv(soft_iface); in batadv_bla_claim_dump() 2355 if (soft_iface) in batadv_bla_claim_dump() [all …]
|
D | translation-table.h | 20 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, 51 void batadv_tt_local_resize_to_mtu(struct net_device *soft_iface);
|
D | gateway_client.c | 553 struct net_device *soft_iface; in batadv_gw_dump() local 563 soft_iface = dev_get_by_index(net, ifindex); in batadv_gw_dump() 564 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_gw_dump() 569 bat_priv = netdev_priv(soft_iface); in batadv_gw_dump() 589 if (soft_iface) in batadv_gw_dump() 590 dev_put(soft_iface); in batadv_gw_dump()
|
D | sysfs.c | 224 bat_priv->soft_iface); \ 277 hard_iface->soft_iface, \ 280 if (hard_iface->soft_iface) { \ 281 bat_priv = netdev_priv(hard_iface->soft_iface); \ 612 bat_priv->soft_iface, NULL); in batadv_store_gw_sel_class() 958 ifname = hard_iface->soft_iface->name; in batadv_show_mesh_iface() 999 if (hard_iface->soft_iface && in batadv_store_mesh_iface_finish() 1000 strncmp(hard_iface->soft_iface->name, ifname, IFNAMSIZ) == 0) in batadv_store_mesh_iface_finish() 1159 batadv_info(hard_iface->soft_iface, in batadv_store_throughput_override() 1167 if (hard_iface->soft_iface) { in batadv_store_throughput_override() [all …]
|
D | routing.c | 357 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_icmp_packet() 678 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_route_unicast_packet() 932 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unhandled_unicast_packet() 961 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unicast_packet() 1040 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, in batadv_recv_unicast_packet() 1071 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unicast_tvlv() 1128 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_frag_packet() 1190 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_bcast_packet() 1278 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, orig_node); in batadv_recv_bcast_packet()
|
D | distributed-arp-table.c | 999 struct net_device *soft_iface; in batadv_dat_cache_dump() local 1012 soft_iface = dev_get_by_index(net, ifindex); in batadv_dat_cache_dump() 1013 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_dat_cache_dump() 1018 bat_priv = netdev_priv(soft_iface); in batadv_dat_cache_dump() 1045 if (soft_iface) in batadv_dat_cache_dump() 1046 dev_put(soft_iface); in batadv_dat_cache_dump() 1172 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_dst, bat_priv->soft_iface, in batadv_dat_arp_create_reply() 1205 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_dat_snoop_outgoing_arp_request() local 1264 skb_new->protocol = eth_type_trans(skb_new, soft_iface); in batadv_dat_snoop_outgoing_arp_request()
|
D | main.h | 243 int batadv_mesh_init(struct net_device *soft_iface); 244 void batadv_mesh_free(struct net_device *soft_iface);
|
D | translation-table.c | 636 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, in batadv_tt_local_add() argument 639 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_tt_local_add() 642 struct net *net = dev_net(soft_iface); in batadv_tt_local_add() 700 net_ratelimited_function(batadv_info, soft_iface, in batadv_tt_local_add() 713 net_ratelimited_function(batadv_info, soft_iface, in batadv_tt_local_add() 743 if (batadv_compare_eth(addr, soft_iface->dev_addr) || in batadv_tt_local_add() 1007 if (tt_diff_len > bat_priv->soft_iface->mtu) in batadv_tt_tvlv_container_update() 1251 struct net_device *soft_iface; in batadv_tt_local_dump() local 1265 soft_iface = dev_get_by_index(net, ifindex); in batadv_tt_local_dump() 1266 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_tt_local_dump() [all …]
|
D | bat_v.c | 47 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate() 101 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac() 192 if (hard_iface->soft_iface != net_dev) in batadv_v_neigh_print() 319 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_neigh_dump() 674 if (!batadv_parse_throughput(bat_priv->soft_iface, buff, in batadv_v_store_sel_class()
|
D | types.h | 206 struct net_device *soft_iface; member 1567 struct net_device *soft_iface; member
|
D | network-coding.c | 1424 struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_dst_search() 1511 const struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_forward() 1809 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()
|