/kernel/linux/linux-5.10/net/batman-adv/ |
D | bridge_loop_avoidance.c | 346 struct batadv_hard_iface *primary_if; in batadv_bla_send_claim() local 352 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_send_claim() 353 if (!primary_if) in batadv_bla_send_claim() 360 soft_iface = primary_if->soft_iface; in batadv_bla_send_claim() 365 primary_if->soft_iface, in batadv_bla_send_claim() 371 primary_if->net_dev->dev_addr, in batadv_bla_send_claim() 453 if (primary_if) in batadv_bla_send_claim() 454 batadv_hardif_put(primary_if); in batadv_bla_send_claim() 571 struct batadv_hard_iface *primary_if, in batadv_bla_update_own_backbone_gw() argument 577 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw() [all …]
|
D | hard-interface.c | 464 struct batadv_hard_iface *primary_if; in batadv_primary_if_update_addr() local 466 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_primary_if_update_addr() 467 if (!primary_if) in batadv_primary_if_update_addr() 470 batadv_dat_init_own_addr(bat_priv, primary_if); in batadv_primary_if_update_addr() 471 batadv_bla_update_orig_address(bat_priv, primary_if, oldif); in batadv_primary_if_update_addr() 473 if (primary_if) in batadv_primary_if_update_addr() 474 batadv_hardif_put(primary_if); in batadv_primary_if_update_addr() 487 curr_hard_iface = rcu_replace_pointer(bat_priv->primary_if, in batadv_primary_if_select() 659 struct batadv_hard_iface *primary_if = NULL; in batadv_hardif_activate_interface() local 672 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_activate_interface() [all …]
|
D | routing.c | 222 struct batadv_hard_iface *primary_if = NULL; in batadv_recv_my_icmp_packet() local 241 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_recv_my_icmp_packet() 242 if (!primary_if) in batadv_recv_my_icmp_packet() 257 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet() 282 if (primary_if) in batadv_recv_my_icmp_packet() 283 batadv_hardif_put(primary_if); in batadv_recv_my_icmp_packet() 295 struct batadv_hard_iface *primary_if = NULL; in batadv_recv_icmp_ttl_exceeded() local 309 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_recv_icmp_ttl_exceeded() 310 if (!primary_if) in batadv_recv_icmp_ttl_exceeded() 325 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded() [all …]
|
D | originator.c | 708 struct batadv_hard_iface *primary_if; in batadv_hardif_neigh_seq_print_text() local 710 primary_if = batadv_seq_print_text_primary_if_get(seq); in batadv_hardif_neigh_seq_print_text() 711 if (!primary_if) in batadv_hardif_neigh_seq_print_text() 715 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_hardif_neigh_seq_print_text() 716 primary_if->net_dev->dev_addr, net_dev->name, in batadv_hardif_neigh_seq_print_text() 719 batadv_hardif_put(primary_if); in batadv_hardif_neigh_seq_print_text() 747 struct batadv_hard_iface *primary_if = NULL; in batadv_hardif_neigh_dump() local 763 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_neigh_dump() 764 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_hardif_neigh_dump() 801 if (primary_if) in batadv_hardif_neigh_dump() [all …]
|
D | send.c | 288 struct batadv_hard_iface *primary_if; in batadv_send_skb_prepare_unicast_4addr() local 292 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr() 293 if (!primary_if) in batadv_send_skb_prepare_unicast_4addr() 306 ether_addr_copy(uc_4addr_packet->src, primary_if->net_dev->dev_addr); in batadv_send_skb_prepare_unicast_4addr() 312 if (primary_if) in batadv_send_skb_prepare_unicast_4addr() 313 batadv_hardif_put(primary_if); in batadv_send_skb_prepare_unicast_4addr() 759 struct batadv_hard_iface *primary_if; in batadv_add_bcast_packet_to_list() local 764 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_add_bcast_packet_to_list() 765 if (!primary_if) in batadv_add_bcast_packet_to_list() 770 batadv_hardif_put(primary_if); in batadv_add_bcast_packet_to_list() [all …]
|
D | gateway_client.c | 517 struct batadv_hard_iface *primary_if; in batadv_gw_client_seq_print_text() local 519 primary_if = batadv_seq_print_text_primary_if_get(seq); in batadv_gw_client_seq_print_text() 520 if (!primary_if) in batadv_gw_client_seq_print_text() 524 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_gw_client_seq_print_text() 525 primary_if->net_dev->dev_addr, net_dev->name, in batadv_gw_client_seq_print_text() 528 batadv_hardif_put(primary_if); in batadv_gw_client_seq_print_text() 551 struct batadv_hard_iface *primary_if = NULL; in batadv_gw_dump() local 571 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_gw_dump() 572 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_gw_dump() 587 if (primary_if) in batadv_gw_dump() [all …]
|
D | tp_meter.c | 629 struct batadv_hard_iface *primary_if = NULL; in batadv_tp_recv_ack() local 657 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tp_recv_ack() 658 if (unlikely(!primary_if)) in batadv_tp_recv_ack() 685 batadv_tp_send_msg(tp_vars, primary_if->net_dev->dev_addr, in batadv_tp_recv_ack() 723 dev_addr = primary_if->net_dev->dev_addr; in batadv_tp_recv_ack() 753 if (likely(primary_if)) in batadv_tp_recv_ack() 754 batadv_hardif_put(primary_if); in batadv_tp_recv_ack() 811 struct batadv_hard_iface *primary_if = NULL; in batadv_tp_send() local 829 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tp_send() 830 if (unlikely(!primary_if)) { in batadv_tp_send() [all …]
|
D | icmp_socket.c | 169 struct batadv_hard_iface *primary_if = NULL; in batadv_socket_write() local 184 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_socket_write() 186 if (!primary_if) { in batadv_socket_write() 269 ether_addr_copy(icmp_header->orig, primary_if->net_dev->dev_addr); in batadv_socket_write() 280 if (primary_if) in batadv_socket_write() 281 batadv_hardif_put(primary_if); in batadv_socket_write()
|
D | translation-table.c | 1077 struct batadv_hard_iface *primary_if; in batadv_tt_local_seq_print_text() local 1086 primary_if = batadv_seq_print_text_primary_if_get(seq); in batadv_tt_local_seq_print_text() 1087 if (!primary_if) in batadv_tt_local_seq_print_text() 1133 if (primary_if) in batadv_tt_local_seq_print_text() 1134 batadv_hardif_put(primary_if); in batadv_tt_local_seq_print_text() 1252 struct batadv_hard_iface *primary_if = NULL; in batadv_tt_local_dump() local 1272 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tt_local_dump() 1273 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_tt_local_dump() 1291 if (primary_if) in batadv_tt_local_dump() 1292 batadv_hardif_put(primary_if); in batadv_tt_local_dump() [all …]
|
D | bat_v.c | 48 struct batadv_hard_iface *primary_if; in batadv_v_iface_activate() local 50 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_iface_activate() 52 if (primary_if) { in batadv_v_iface_activate() 53 batadv_v_elp_iface_activate(primary_if, hard_iface); in batadv_v_iface_activate() 54 batadv_hardif_put(primary_if); in batadv_v_iface_activate() 102 struct batadv_hard_iface *primary_if; in batadv_v_iface_update_mac() local 104 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_iface_update_mac() 105 if (primary_if != hard_iface) in batadv_v_iface_update_mac() 110 if (primary_if) in batadv_v_iface_update_mac() 111 batadv_hardif_put(primary_if); in batadv_v_iface_update_mac()
|
D | main.c | 345 struct batadv_hard_iface *primary_if; in batadv_seq_print_text_primary_if_get() local 347 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_seq_print_text_primary_if_get() 349 if (!primary_if) { in batadv_seq_print_text_primary_if_get() 356 if (primary_if->if_status == BATADV_IF_ACTIVE) in batadv_seq_print_text_primary_if_get() 362 batadv_hardif_put(primary_if); in batadv_seq_print_text_primary_if_get() 363 primary_if = NULL; in batadv_seq_print_text_primary_if_get() 366 return primary_if; in batadv_seq_print_text_primary_if_get()
|
D | fragmentation.c | 448 struct batadv_hard_iface *primary_if = NULL; in batadv_frag_send_packet() local 475 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_frag_send_packet() 476 if (!primary_if) { in batadv_frag_send_packet() 511 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet() 560 batadv_hardif_put(primary_if); in batadv_frag_send_packet()
|
D | bridge_loop_avoidance.h | 54 struct batadv_hard_iface *primary_if, 114 struct batadv_hard_iface *primary_if, in batadv_bla_update_orig_address() argument
|
D | distributed-arp-table.h | 65 struct batadv_hard_iface *primary_if) in batadv_dat_init_own_addr() argument 69 addr = batadv_choose_orig(primary_if->net_dev->dev_addr, in batadv_dat_init_own_addr()
|
D | bat_v_elp.c | 511 struct batadv_hard_iface *primary_if; in batadv_v_elp_packet_recv() local 537 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_elp_packet_recv() 538 if (!primary_if) in batadv_v_elp_packet_recv() 545 batadv_hardif_put(primary_if); in batadv_v_elp_packet_recv()
|
D | distributed-arp-table.c | 862 struct batadv_hard_iface *primary_if; in batadv_dat_cache_seq_print_text() local 868 primary_if = batadv_seq_print_text_primary_if_get(seq); in batadv_dat_cache_seq_print_text() 869 if (!primary_if) in batadv_dat_cache_seq_print_text() 896 if (primary_if) in batadv_dat_cache_seq_print_text() 897 batadv_hardif_put(primary_if); in batadv_dat_cache_seq_print_text() 996 struct batadv_hard_iface *primary_if = NULL; in batadv_dat_cache_dump() local 1021 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_dat_cache_dump() 1022 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_dat_cache_dump() 1042 if (primary_if) in batadv_dat_cache_dump() 1043 batadv_hardif_put(primary_if); in batadv_dat_cache_dump()
|
D | soft-interface.c | 188 struct batadv_hard_iface *primary_if = NULL; in batadv_interface_tx() local 324 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_interface_tx() 325 if (!primary_if) in batadv_interface_tx() 350 primary_if->net_dev->dev_addr); in batadv_interface_tx() 402 if (primary_if) in batadv_interface_tx() 403 batadv_hardif_put(primary_if); in batadv_interface_tx() 837 bat_priv->primary_if = NULL; in batadv_softif_init_late()
|
D | multicast.c | 2141 struct batadv_hard_iface *primary_if; in batadv_mcast_flags_seq_print_text() local 2148 primary_if = batadv_seq_print_text_primary_if_get(seq); in batadv_mcast_flags_seq_print_text() 2149 if (!primary_if) in batadv_mcast_flags_seq_print_text() 2186 batadv_hardif_put(primary_if); in batadv_mcast_flags_seq_print_text() 2361 struct batadv_hard_iface **primary_if) in batadv_mcast_netlink_get_primary() argument 2392 if (!ret && primary_if) in batadv_mcast_netlink_get_primary() 2393 *primary_if = hard_iface; in batadv_mcast_netlink_get_primary() 2409 struct batadv_hard_iface *primary_if = NULL; in batadv_mcast_flags_dump() local 2416 ret = batadv_mcast_netlink_get_primary(cb, &primary_if); in batadv_mcast_flags_dump() 2420 bat_priv = netdev_priv(primary_if->soft_iface); in batadv_mcast_flags_dump() [all …]
|
D | netlink.c | 233 struct batadv_hard_iface *primary_if = NULL; in batadv_netlink_mesh_fill() local 261 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_netlink_mesh_fill() 262 if (primary_if && primary_if->if_status == BATADV_IF_ACTIVE) { in batadv_netlink_mesh_fill() 263 hard_iface = primary_if->net_dev; in batadv_netlink_mesh_fill() 361 if (primary_if) in batadv_netlink_mesh_fill() 362 batadv_hardif_put(primary_if); in batadv_netlink_mesh_fill() 368 if (primary_if) in batadv_netlink_mesh_fill() 369 batadv_hardif_put(primary_if); in batadv_netlink_mesh_fill()
|
D | bat_iv_ogm.c | 450 struct batadv_hard_iface *primary_if = NULL; in batadv_iv_ogm_can_aggregate() local 484 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_can_aggregate() 485 if (!primary_if) in batadv_iv_ogm_can_aggregate() 499 forw_packet->if_incoming == primary_if)) { in batadv_iv_ogm_can_aggregate() 517 forw_packet->if_incoming != primary_if))) { in batadv_iv_ogm_can_aggregate() 523 if (primary_if) in batadv_iv_ogm_can_aggregate() 524 batadv_hardif_put(primary_if); in batadv_iv_ogm_can_aggregate() 787 struct batadv_hard_iface *primary_if, *tmp_hard_iface; in batadv_iv_ogm_schedule_buff() local 808 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_schedule_buff() 810 if (hard_iface == primary_if) { in batadv_iv_ogm_schedule_buff() [all …]
|
D | hard-interface.h | 134 hard_iface = rcu_dereference(bat_priv->primary_if); in batadv_primary_if_get_selected()
|
D | network-coding.c | 1901 struct batadv_hard_iface *primary_if; in batadv_nc_nodes_seq_print_text() local 1907 primary_if = batadv_seq_print_text_primary_if_get(seq); in batadv_nc_nodes_seq_print_text() 1908 if (!primary_if) in batadv_nc_nodes_seq_print_text() 1947 if (primary_if) in batadv_nc_nodes_seq_print_text() 1948 batadv_hardif_put(primary_if); in batadv_nc_nodes_seq_print_text()
|
D | types.h | 1718 struct batadv_hard_iface __rcu *primary_if; /* rcu protected pointer */ member
|