/linux-6.1.9/net/batman-adv/ |
D | bridge_loop_avoidance.c | 345 struct batadv_hard_iface *primary_if; in batadv_bla_send_claim() local 351 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_send_claim() 352 if (!primary_if) in batadv_bla_send_claim() 359 soft_iface = primary_if->soft_iface; in batadv_bla_send_claim() 364 primary_if->soft_iface, in batadv_bla_send_claim() 370 primary_if->net_dev->dev_addr, in batadv_bla_send_claim() 449 batadv_hardif_put(primary_if); in batadv_bla_send_claim() 566 struct batadv_hard_iface *primary_if, in batadv_bla_update_own_backbone_gw() argument 572 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw() 591 struct batadv_hard_iface *primary_if, in batadv_bla_answer_request() argument [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 batadv_hardif_put(primary_if); in batadv_primary_if_update_addr() 486 curr_hard_iface = rcu_replace_pointer(bat_priv->primary_if, in batadv_primary_if_select() 645 struct batadv_hard_iface *primary_if = NULL; in batadv_hardif_activate_interface() local 658 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_activate_interface() 659 if (!primary_if) in batadv_hardif_activate_interface() [all …]
|
D | routing.c | 219 struct batadv_hard_iface *primary_if = NULL; in batadv_recv_my_icmp_packet() local 229 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_recv_my_icmp_packet() 230 if (!primary_if) in batadv_recv_my_icmp_packet() 245 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet() 270 batadv_hardif_put(primary_if); in batadv_recv_my_icmp_packet() 281 struct batadv_hard_iface *primary_if = NULL; in batadv_recv_icmp_ttl_exceeded() local 295 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_recv_icmp_ttl_exceeded() 296 if (!primary_if) in batadv_recv_icmp_ttl_exceeded() 311 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded() 323 batadv_hardif_put(primary_if); in batadv_recv_icmp_ttl_exceeded() [all …]
|
D | send.c | 287 struct batadv_hard_iface *primary_if; in batadv_send_skb_prepare_unicast_4addr() local 291 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr() 292 if (!primary_if) in batadv_send_skb_prepare_unicast_4addr() 305 ether_addr_copy(uc_4addr_packet->src, primary_if->net_dev->dev_addr); in batadv_send_skb_prepare_unicast_4addr() 311 batadv_hardif_put(primary_if); in batadv_send_skb_prepare_unicast_4addr() 924 struct batadv_hard_iface *primary_if; in __batadv_forw_bcast_packet() local 927 primary_if = batadv_primary_if_get_selected(bat_priv); in __batadv_forw_bcast_packet() 928 if (!primary_if) in __batadv_forw_bcast_packet() 946 own_packet, primary_if, in __batadv_forw_bcast_packet() 955 batadv_hardif_put(primary_if); in __batadv_forw_bcast_packet()
|
D | tp_meter.c | 630 struct batadv_hard_iface *primary_if = NULL; in batadv_tp_recv_ack() local 658 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tp_recv_ack() 659 if (unlikely(!primary_if)) in batadv_tp_recv_ack() 686 batadv_tp_send_msg(tp_vars, primary_if->net_dev->dev_addr, in batadv_tp_recv_ack() 724 dev_addr = primary_if->net_dev->dev_addr; in batadv_tp_recv_ack() 754 batadv_hardif_put(primary_if); in batadv_tp_recv_ack() 809 struct batadv_hard_iface *primary_if = NULL; in batadv_tp_send() local 827 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tp_send() 828 if (unlikely(!primary_if)) { in batadv_tp_send() 860 err = batadv_tp_send_msg(tp_vars, primary_if->net_dev->dev_addr, in batadv_tp_send() [all …]
|
D | bat_v.c | 47 struct batadv_hard_iface *primary_if; in batadv_v_iface_activate() local 49 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_iface_activate() 51 if (primary_if) { in batadv_v_iface_activate() 52 batadv_v_elp_iface_activate(primary_if, hard_iface); in batadv_v_iface_activate() 53 batadv_hardif_put(primary_if); in batadv_v_iface_activate() 101 struct batadv_hard_iface *primary_if; in batadv_v_iface_update_mac() local 103 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_iface_update_mac() 104 if (primary_if != hard_iface) in batadv_v_iface_update_mac() 109 batadv_hardif_put(primary_if); in batadv_v_iface_update_mac()
|
D | bridge_loop_avoidance.h | 50 struct batadv_hard_iface *primary_if, 97 struct batadv_hard_iface *primary_if, in batadv_bla_update_orig_address() argument
|
D | fragmentation.c | 445 struct batadv_hard_iface *primary_if = NULL; in batadv_frag_send_packet() local 472 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_frag_send_packet() 473 if (!primary_if) { in batadv_frag_send_packet() 508 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet() 557 batadv_hardif_put(primary_if); in batadv_frag_send_packet()
|
D | originator.c | 709 struct batadv_hard_iface *primary_if = NULL; in batadv_hardif_neigh_dump() local 725 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_hardif_neigh_dump() 726 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_hardif_neigh_dump() 761 batadv_hardif_put(primary_if); in batadv_hardif_neigh_dump() 1293 struct batadv_hard_iface *primary_if = NULL; in batadv_orig_dump() local 1309 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_orig_dump() 1310 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_orig_dump() 1345 batadv_hardif_put(primary_if); in batadv_orig_dump()
|
D | distributed-arp-table.h | 64 struct batadv_hard_iface *primary_if) in batadv_dat_init_own_addr() argument 68 addr = batadv_choose_orig(primary_if->net_dev->dev_addr, in batadv_dat_init_own_addr()
|
D | bat_v_elp.c | 508 struct batadv_hard_iface *primary_if; in batadv_v_elp_packet_recv() local 533 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_elp_packet_recv() 534 if (!primary_if) in batadv_v_elp_packet_recv() 541 batadv_hardif_put(primary_if); in batadv_v_elp_packet_recv()
|
D | translation-table.c | 1170 struct batadv_hard_iface *primary_if = NULL; in batadv_tt_local_dump() local 1190 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tt_local_dump() 1191 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_tt_local_dump() 1209 batadv_hardif_put(primary_if); in batadv_tt_local_dump() 1945 struct batadv_hard_iface *primary_if = NULL; in batadv_tt_global_dump() local 1967 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_tt_global_dump() 1968 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_tt_global_dump() 1989 batadv_hardif_put(primary_if); in batadv_tt_global_dump() 2921 struct batadv_hard_iface *primary_if; in batadv_send_tt_request() local 2925 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_tt_request() [all …]
|
D | gateway_client.c | 504 struct batadv_hard_iface *primary_if = NULL; in batadv_gw_dump() local 524 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_gw_dump() 525 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_gw_dump() 540 batadv_hardif_put(primary_if); in batadv_gw_dump()
|
D | soft-interface.c | 183 struct batadv_hard_iface *primary_if = NULL; in batadv_interface_tx() local 319 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_interface_tx() 320 if (!primary_if) in batadv_interface_tx() 345 primary_if->net_dev->dev_addr); in batadv_interface_tx() 390 batadv_hardif_put(primary_if); in batadv_interface_tx() 797 bat_priv->primary_if = NULL; in batadv_softif_init_late()
|
D | bat_iv_ogm.c | 449 struct batadv_hard_iface *primary_if = NULL; in batadv_iv_ogm_can_aggregate() local 483 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_can_aggregate() 484 if (!primary_if) in batadv_iv_ogm_can_aggregate() 498 forw_packet->if_incoming == primary_if)) { in batadv_iv_ogm_can_aggregate() 516 forw_packet->if_incoming != primary_if))) { in batadv_iv_ogm_can_aggregate() 522 batadv_hardif_put(primary_if); in batadv_iv_ogm_can_aggregate() 785 struct batadv_hard_iface *primary_if, *tmp_hard_iface; in batadv_iv_ogm_schedule_buff() local 806 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_schedule_buff() 808 if (hard_iface == primary_if) { in batadv_iv_ogm_schedule_buff() 830 if (hard_iface != primary_if) { in batadv_iv_ogm_schedule_buff() [all …]
|
D | hard-interface.h | 110 hard_iface = rcu_dereference(bat_priv->primary_if); in batadv_primary_if_get_selected()
|
D | netlink.c | 234 struct batadv_hard_iface *primary_if = NULL; in batadv_netlink_mesh_fill() local 262 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_netlink_mesh_fill() 263 if (primary_if && primary_if->if_status == BATADV_IF_ACTIVE) { in batadv_netlink_mesh_fill() 264 hard_iface = primary_if->net_dev; in batadv_netlink_mesh_fill() 362 batadv_hardif_put(primary_if); in batadv_netlink_mesh_fill() 368 batadv_hardif_put(primary_if); in batadv_netlink_mesh_fill()
|
D | multicast.c | 2218 struct batadv_hard_iface **primary_if) in batadv_mcast_netlink_get_primary() argument 2248 if (!ret && primary_if) in batadv_mcast_netlink_get_primary() 2249 *primary_if = hard_iface; in batadv_mcast_netlink_get_primary() 2265 struct batadv_hard_iface *primary_if = NULL; in batadv_mcast_flags_dump() local 2272 ret = batadv_mcast_netlink_get_primary(cb, &primary_if); in batadv_mcast_flags_dump() 2276 bat_priv = netdev_priv(primary_if->soft_iface); in batadv_mcast_flags_dump() 2279 batadv_hardif_put(primary_if); in batadv_mcast_flags_dump()
|
D | distributed-arp-table.c | 939 struct batadv_hard_iface *primary_if = NULL; in batadv_dat_cache_dump() local 964 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_dat_cache_dump() 965 if (!primary_if || primary_if->if_status != BATADV_IF_ACTIVE) { in batadv_dat_cache_dump() 985 batadv_hardif_put(primary_if); in batadv_dat_cache_dump()
|
D | types.h | 1684 struct batadv_hard_iface __rcu *primary_if; /* rcu protected pointer */ member
|