/Linux-v6.1/net/batman-adv/ |
D | hard-interface.c | 235 if (!hard_iface || !hard_iface->soft_iface) in batadv_get_real_netdevice() 238 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() 536 static void batadv_hardif_recalc_extra_skbroom(struct net_device *soft_iface) in batadv_hardif_recalc_extra_skbroom() argument 549 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_recalc_extra_skbroom() 569 soft_iface->needed_headroom = needed_headroom; in batadv_hardif_recalc_extra_skbroom() 570 soft_iface->needed_tailroom = lower_tailroom; in batadv_hardif_recalc_extra_skbroom() 580 int batadv_hardif_min_mtu(struct net_device *soft_iface) in batadv_hardif_min_mtu() argument 582 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_hardif_min_mtu() [all …]
|
D | netlink.c | 233 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_netlink_mesh_fill() local 245 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_fill() 246 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || in batadv_netlink_mesh_fill() 248 soft_iface->dev_addr) || in batadv_netlink_mesh_fill() 397 dev_net(bat_priv->soft_iface), msg, 0, in batadv_netlink_notify_mesh() 480 batadv_bla_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 490 batadv_dat_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 498 batadv_update_min_mtu(bat_priv->soft_iface); in batadv_netlink_set_mesh() 600 batadv_nc_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 686 dev_net(bat_priv->soft_iface), msg, 0, in batadv_netlink_tpmeter_notify() [all …]
|
D | soft-interface.c | 179 struct net_device *soft_iface) in batadv_interface_tx() argument 182 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_tx() 211 netif_trans_update(soft_iface); in batadv_interface_tx() 248 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 411 void batadv_interface_rx(struct net_device *soft_iface, in batadv_interface_rx() argument 416 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_rx() 456 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_interface_rx() 586 batadv_tt_local_add(bat_priv->soft_iface, in batadv_softif_create_vlan() 587 bat_priv->soft_iface->dev_addr, vid, in batadv_softif_create_vlan() 607 batadv_tt_local_remove(bat_priv, bat_priv->soft_iface->dev_addr, in batadv_softif_destroy_vlan() [all …]
|
D | originator.c | 518 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_hardif_neigh_create() 705 struct net_device *soft_iface; in batadv_hardif_neigh_dump() local 717 soft_iface = dev_get_by_index(net, ifindex); in batadv_hardif_neigh_dump() 718 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_hardif_neigh_dump() 723 bat_priv = netdev_priv(soft_iface); in batadv_hardif_neigh_dump() 743 if (hardif->soft_iface != soft_iface) { in batadv_hardif_neigh_dump() 762 dev_put(soft_iface); in batadv_hardif_neigh_dump() 1202 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_purge_orig_node() 1289 struct net_device *soft_iface; in batadv_orig_dump() local 1301 soft_iface = dev_get_by_index(net, ifindex); in batadv_orig_dump() [all …]
|
D | hard-interface.h | 77 struct net_device *soft_iface); 79 int batadv_hardif_min_mtu(struct net_device *soft_iface); 80 void batadv_update_min_mtu(struct net_device *soft_iface);
|
D | main.c | 150 int batadv_mesh_init(struct net_device *soft_iface) in batadv_mesh_init() argument 152 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init() 258 void batadv_mesh_free(struct net_device *soft_iface) in batadv_mesh_free() argument 260 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_free() 314 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_is_my_mac() 459 if (!hard_iface->soft_iface) in batadv_batman_skb_recv() 462 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_batman_skb_recv() 685 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() 169 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get() 199 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get() 249 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_flags_get() 697 if (!batadv_tt_local_add(bat_priv->soft_iface, in batadv_mcast_mla_tt_add() 735 batadv_info(bat_priv->soft_iface, "%s Querier appeared\n", in batadv_mcast_querier_log() 738 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log() 742 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log() 872 struct net_device *soft_iface = bat_priv->soft_iface; in __batadv_mcast_mla_update() local [all …]
|
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() 506 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_elp_packet_recv()
|
D | bat_iv_ogm.c | 336 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_send_to_if() 400 struct net_device *soft_iface; in batadv_iv_ogm_emit() local 407 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_iv_ogm_emit() 412 if (forw_packet->if_outgoing->soft_iface != soft_iface) { in batadv_iv_ogm_emit() 544 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_aggregate_new() 690 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_forward() 743 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_slide_own_bcast_window() 782 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_schedule_buff() 844 if (tmp_hard_iface->soft_iface != hard_iface->soft_iface) in batadv_iv_ogm_schedule_buff() 1069 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_calc_tq() [all …]
|
D | trace.h | 37 __string(device, bat_priv->soft_iface->name) 43 __assign_str(device, bat_priv->soft_iface->name);
|
D | bat_v_ogm.c | 125 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if() 241 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_queue_on_if() 304 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_send_softif() 410 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_iface_enable() 437 struct batadv_priv *bat_priv = netdev_priv(primary_iface->soft_iface); in batadv_v_ogm_primary_iface_set() 854 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_process() 928 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_process() 987 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_packet_recv()
|
D | bridge_loop_avoidance.c | 346 struct net_device *soft_iface; in batadv_bla_send_claim() local 359 soft_iface = primary_if->soft_iface; in batadv_bla_send_claim() 364 primary_if->soft_iface, in batadv_bla_send_claim() 442 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_bla_send_claim() 469 batadv_info(bat_priv->soft_iface, in batadv_bla_loopdetect_report() 2237 struct net_device *soft_iface; in batadv_bla_claim_dump() local 2250 soft_iface = dev_get_by_index(net, ifindex); in batadv_bla_claim_dump() 2251 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_bla_claim_dump() 2256 bat_priv = netdev_priv(soft_iface); in batadv_bla_claim_dump() 2280 dev_put(soft_iface); in batadv_bla_claim_dump() [all …]
|
D | translation-table.h | 19 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, 48 void batadv_tt_local_resize_to_mtu(struct net_device *soft_iface);
|
D | routing.c | 341 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_icmp_packet() 659 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_route_unicast_packet() 912 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unhandled_unicast_packet() 941 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unicast_packet() 1020 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, in batadv_recv_unicast_packet() 1050 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_unicast_tvlv() 1107 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_frag_packet() 1169 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_bcast_packet() 1259 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, orig_node); in batadv_recv_bcast_packet()
|
D | gateway_client.c | 506 struct net_device *soft_iface; in batadv_gw_dump() local 516 soft_iface = dev_get_by_index(net, ifindex); in batadv_gw_dump() 517 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_gw_dump() 522 bat_priv = netdev_priv(soft_iface); in batadv_gw_dump() 541 dev_put(soft_iface); in batadv_gw_dump()
|
D | distributed-arp-table.c | 942 struct net_device *soft_iface; in batadv_dat_cache_dump() local 955 soft_iface = dev_get_by_index(net, ifindex); in batadv_dat_cache_dump() 956 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_dat_cache_dump() 961 bat_priv = netdev_priv(soft_iface); in batadv_dat_cache_dump() 987 dev_put(soft_iface); in batadv_dat_cache_dump() 1113 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_dst, bat_priv->soft_iface, in batadv_dat_arp_create_reply() 1146 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_dat_snoop_outgoing_arp_request() local 1205 skb_new->protocol = eth_type_trans(skb_new, soft_iface); in batadv_dat_snoop_outgoing_arp_request()
|
D | main.h | 241 int batadv_mesh_init(struct net_device *soft_iface); 242 void batadv_mesh_free(struct net_device *soft_iface);
|
D | translation-table.c | 635 bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, in batadv_tt_local_add() argument 638 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_tt_local_add() 641 struct net *net = dev_net(soft_iface); in batadv_tt_local_add() 699 net_ratelimited_function(batadv_info, soft_iface, in batadv_tt_local_add() 712 net_ratelimited_function(batadv_info, soft_iface, in batadv_tt_local_add() 742 if (batadv_compare_eth(addr, soft_iface->dev_addr) || in batadv_tt_local_add() 1002 if (tt_diff_len > bat_priv->soft_iface->mtu) in batadv_tt_tvlv_container_update() 1168 struct net_device *soft_iface; in batadv_tt_local_dump() local 1182 soft_iface = dev_get_by_index(net, ifindex); in batadv_tt_local_dump() 1183 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_tt_local_dump() [all …]
|
D | bat_v.c | 46 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate() 100 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac() 233 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_neigh_dump() 520 if (!batadv_parse_throughput(bat_priv->soft_iface, buff, in batadv_v_store_sel_class()
|
D | soft-interface.h | 19 void batadv_interface_rx(struct net_device *soft_iface,
|
D | send.c | 71 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet() 933 if (hard_iface->soft_iface != bat_priv->soft_iface) in __batadv_forw_bcast_packet() 1063 bat_priv = netdev_priv(forw_packet->if_incoming->soft_iface); in batadv_send_outstanding_bcast_packet()
|
D | types.h | 202 struct net_device *soft_iface; member 1547 struct net_device *soft_iface; member
|
D | network-coding.c | 1411 struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_dst_search() 1498 const struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_forward() 1796 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_nc_recv_coded_packet()
|
D | fragmentation.c | 353 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_frag_skb_fwd()
|