Home
last modified time | relevance | path

Searched refs:soft_iface (Results 1 – 24 of 24) sorted by relevance

/linux-6.12.1/net/batman-adv/
Dhard-interface.c236 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()
441 batadv_hardif_get_active(const struct net_device *soft_iface) in batadv_hardif_get_active() argument
447 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_get_active()
537 static void batadv_hardif_recalc_extra_skbroom(struct net_device *soft_iface) in batadv_hardif_recalc_extra_skbroom() argument
550 if (hard_iface->soft_iface != soft_iface) in batadv_hardif_recalc_extra_skbroom()
570 soft_iface->needed_headroom = needed_headroom; in batadv_hardif_recalc_extra_skbroom()
571 soft_iface->needed_tailroom = lower_tailroom; in batadv_hardif_recalc_extra_skbroom()
581 int batadv_hardif_min_mtu(struct net_device *soft_iface) in batadv_hardif_min_mtu() argument
583 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_hardif_min_mtu()
[all …]
Dnetlink.c231 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_netlink_mesh_fill() local
243 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_fill()
244 nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || in batadv_netlink_mesh_fill()
246 soft_iface->dev_addr) || in batadv_netlink_mesh_fill()
395 dev_net(bat_priv->soft_iface), msg, 0, in batadv_netlink_notify_mesh()
478 batadv_bla_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh()
488 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()
598 batadv_nc_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh()
684 dev_net(bat_priv->soft_iface), msg, 0, in batadv_netlink_tpmeter_notify()
[all …]
Dsoft-interface.c181 struct net_device *soft_iface) in batadv_interface_tx() argument
184 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_tx()
212 netif_trans_update(soft_iface); in batadv_interface_tx()
249 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx()
415 void batadv_interface_rx(struct net_device *soft_iface, in batadv_interface_rx() argument
420 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_rx()
460 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_interface_rx()
590 batadv_tt_local_add(bat_priv->soft_iface, in batadv_softif_create_vlan()
591 bat_priv->soft_iface->dev_addr, vid, in batadv_softif_create_vlan()
611 batadv_tt_local_remove(bat_priv, bat_priv->soft_iface->dev_addr, in batadv_softif_destroy_vlan()
[all …]
Doriginator.c572 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_hardif_neigh_create()
759 struct net_device *soft_iface; in batadv_hardif_neigh_dump() local
771 soft_iface = dev_get_by_index(net, ifindex); in batadv_hardif_neigh_dump()
772 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_hardif_neigh_dump()
777 bat_priv = netdev_priv(soft_iface); in batadv_hardif_neigh_dump()
797 if (hardif->soft_iface != soft_iface) { in batadv_hardif_neigh_dump()
816 dev_put(soft_iface); in batadv_hardif_neigh_dump()
1257 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_purge_orig_node()
1346 struct net_device *soft_iface; in batadv_orig_dump() local
1358 soft_iface = dev_get_by_index(net, ifindex); in batadv_orig_dump()
[all …]
Dhard-interface.h77 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);
Dmulticast.c85 static struct net_device *batadv_mcast_get_bridge(struct net_device *soft_iface) in batadv_mcast_get_bridge() argument
87 struct net_device *upper = soft_iface; in batadv_mcast_get_bridge()
168 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get()
198 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get()
256 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_mcast_mla_forw_flags_get()
279 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_flags_get()
728 if (!batadv_tt_local_add(bat_priv->soft_iface, in batadv_mcast_mla_tt_add()
766 batadv_info(bat_priv->soft_iface, "%s Querier appeared\n", in batadv_mcast_querier_log()
769 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log()
773 batadv_info(bat_priv->soft_iface, in batadv_mcast_querier_log()
[all …]
Dmain.c151 int batadv_mesh_init(struct net_device *soft_iface) in batadv_mesh_init() argument
153 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init()
259 void batadv_mesh_free(struct net_device *soft_iface) in batadv_mesh_free() argument
261 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_free()
315 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_is_my_mac()
460 if (!hard_iface->soft_iface) in batadv_batman_skb_recv()
463 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_batman_skb_recv()
688 bat_kobj = &bat_priv->soft_iface->dev.kobj; in batadv_throw_uevent()
Dbat_iv_ogm.c335 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_send_to_if()
399 struct net_device *soft_iface; in batadv_iv_ogm_emit() local
406 soft_iface = forw_packet->if_incoming->soft_iface; in batadv_iv_ogm_emit()
411 if (forw_packet->if_outgoing->soft_iface != soft_iface) { in batadv_iv_ogm_emit()
543 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_aggregate_new()
689 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_forward()
742 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_slide_own_bcast_window()
781 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_schedule_buff()
843 if (tmp_hard_iface->soft_iface != hard_iface->soft_iface) in batadv_iv_ogm_schedule_buff()
1068 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_calc_tq()
[all …]
Dbat_v_elp.c144 batadv_info(hard_iface->soft_iface, in batadv_v_elp_get_throughput()
195 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_elp_wifi_neigh_probe()
262 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_elp_periodic_work()
429 if (primary_iface->soft_iface != hard_iface->soft_iface) in batadv_v_elp_primary_iface_set()
505 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_elp_packet_recv()
Dbat_v_ogm.c124 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if()
242 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_queue_on_if()
305 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_send_softif()
411 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_iface_enable()
438 struct batadv_priv *bat_priv = netdev_priv(primary_iface->soft_iface); in batadv_v_ogm_primary_iface_set()
855 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_process()
929 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_process()
988 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_packet_recv()
Drouting.c341 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()
1106 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_frag_packet()
1168 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_bcast_packet()
1258 batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, orig_node); in batadv_recv_bcast_packet()
1289 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_recv_mcast_packet()
[all …]
Dbridge_loop_avoidance.c346 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 …]
Dtranslation-table.h19 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);
Dgateway_client.c506 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()
Ddistributed-arp-table.c941 struct net_device *soft_iface; in batadv_dat_cache_dump() local
954 soft_iface = dev_get_by_index(net, ifindex); in batadv_dat_cache_dump()
955 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_dat_cache_dump()
960 bat_priv = netdev_priv(soft_iface); in batadv_dat_cache_dump()
986 dev_put(soft_iface); in batadv_dat_cache_dump()
1112 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_dst, bat_priv->soft_iface, in batadv_dat_arp_create_reply()
1145 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_dat_snoop_outgoing_arp_request() local
1204 skb_new->protocol = eth_type_trans(skb_new, soft_iface); in batadv_dat_snoop_outgoing_arp_request()
Dmain.h241 int batadv_mesh_init(struct net_device *soft_iface);
242 void batadv_mesh_free(struct net_device *soft_iface);
Dtranslation-table.c635 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()
1001 if (tt_diff_len > bat_priv->soft_iface->mtu) in batadv_tt_tvlv_container_update()
1167 struct net_device *soft_iface; in batadv_tt_local_dump() local
1181 soft_iface = dev_get_by_index(net, ifindex); in batadv_tt_local_dump()
1182 if (!soft_iface || !batadv_softif_is_valid(soft_iface)) { in batadv_tt_local_dump()
[all …]
Dsoft-interface.h19 void batadv_interface_rx(struct net_device *soft_iface,
Dtrace.h37 __string(device, bat_priv->soft_iface->name)
Dsend.c71 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()
Dbat_v.c46 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()
Dtypes.h202 struct net_device *soft_iface; member
1617 struct net_device *soft_iface; member
Dnetwork-coding.c1411 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()
Dfragmentation.c352 struct batadv_priv *bat_priv = netdev_priv(recv_if->soft_iface); in batadv_frag_skb_fwd()