/kernel/linux/linux-5.10/net/batman-adv/ |
H A 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() 536 * @soft_iface: netdev struct of the mesh interface 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 in batadv_hardif_recalc_extra_skbroom() 582 batadv_hardif_min_mtu(struct net_device *soft_iface) batadv_hardif_min_mtu() argument 633 batadv_update_min_mtu(struct net_device *soft_iface) batadv_update_min_mtu() argument 741 struct net_device *soft_iface, *master; batadv_hardif_enable_interface() local 852 batadv_hardif_cnt(const struct net_device *soft_iface) batadv_hardif_cnt() argument [all...] |
H A D | soft-interface.c | 184 struct net_device *soft_iface) in batadv_interface_tx() 187 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_tx() 216 netif_trans_update(soft_iface); in batadv_interface_tx() 253 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 409 * @soft_iface: local interface which will receive the ethernet frame 410 * @skb: ethernet frame for @soft_iface 414 * Sends an ethernet frame to the receive path of the local @soft_iface. 424 void batadv_interface_rx(struct net_device *soft_iface, in batadv_interface_rx() argument 429 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_rx() 469 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_interface_rx() 183 batadv_interface_tx(struct sk_buff *skb, struct net_device *soft_iface) batadv_interface_tx() argument 1078 struct net_device *soft_iface; batadv_softif_create() local 1105 batadv_softif_destroy_sysfs(struct net_device *soft_iface) batadv_softif_destroy_sysfs() argument 1129 batadv_softif_destroy_netlink(struct net_device *soft_iface, struct list_head *head) batadv_softif_destroy_netlink() argument [all...] |
H A 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() 501 batadv_update_min_mtu(bat_priv->soft_iface); in batadv_netlink_set_mesh() 604 batadv_nc_status_update(bat_priv->soft_iface); in batadv_netlink_set_mesh() 970 struct net_device *soft_iface; batadv_netlink_dump_hardif() local 1161 struct net_device *soft_iface; batadv_get_softif_from_info() local 1273 struct net_device *soft_iface; batadv_pre_doit() local [all...] |
H A 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() 1420 struct net_device *soft_iface; batadv_orig_dump() local [all...] |
H A D | main.c | 152 * @soft_iface: netdev struct of the soft interface 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() 262 * @soft_iface: netdev struct of the soft interface 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() [all...] |
H A 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);
|
H A 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() [all...] |
H A 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()
|
H A D | hard-interface.h | 77 * enum batadv_hard_if_cleanup - Cleanup modi for soft_iface after slave removal 103 int batadv_hardif_min_mtu(struct net_device *soft_iface); 104 void batadv_update_min_mtu(struct net_device *soft_iface);
|
H A D | trace.h | 41 __string(device, bat_priv->soft_iface->name) 47 __assign_str(device, bat_priv->soft_iface->name);
|
H A D | multicast.c | 78 * @soft_iface: netdev struct of the mesh interface 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() 155 * @bridge: bridge interface on top of the soft_iface if present, 170 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get() 186 * @bridge: bridge interface on top of the soft_iface if present, 202 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get() 248 * @bridge: bridge interface on top of the soft_iface if present, 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() 905 struct net_device *soft_iface = bat_priv->soft_iface; __batadv_mcast_mla_update() local 2365 struct net_device *soft_iface; batadv_mcast_netlink_get_primary() local [all...] |
H A D | bat_v_ogm.c | 124 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() 865 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_process() 939 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_ogm_process() 1001 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_v_ogm_packet_recv() [all...] |
H A 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);
|
H A 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()
|
/kernel/linux/linux-6.6/net/batman-adv/ |
H A 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() 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() 535 * @soft_iface: netdev struct of the mesh interface 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 in batadv_hardif_recalc_extra_skbroom() 581 batadv_hardif_min_mtu(struct net_device *soft_iface) batadv_hardif_min_mtu() argument 632 batadv_update_min_mtu(struct net_device *soft_iface) batadv_update_min_mtu() argument 709 batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface, struct net_device *soft_iface) batadv_hardif_enable_interface() argument 802 batadv_hardif_cnt(const struct net_device *soft_iface) batadv_hardif_cnt() argument [all...] |
H A 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() 500 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() 970 struct net_device *soft_iface; batadv_netlink_dump_hardif() local 1165 struct net_device *soft_iface; batadv_get_softif_from_info() local 1278 struct net_device *soft_iface; batadv_pre_doit() local [all...] |
H A D | soft-interface.c | 181 struct net_device *soft_iface) in batadv_interface_tx() 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() 397 * @soft_iface: local interface which will receive the ethernet frame 398 * @skb: ethernet frame for @soft_iface 402 * Sends an ethernet frame to the receive path of the local @soft_iface. 412 void batadv_interface_rx(struct net_device *soft_iface, in batadv_interface_rx() argument 417 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_interface_rx() 457 skb->protocol = eth_type_trans(skb, soft_iface); in batadv_interface_rx() 180 batadv_interface_tx(struct sk_buff *skb, struct net_device *soft_iface) batadv_interface_tx() argument 1081 batadv_softif_destroy_netlink(struct net_device *soft_iface, struct list_head *head) batadv_softif_destroy_netlink() argument [all...] |
H A 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 ! in batadv_purge_orig_node() 1289 struct net_device *soft_iface; batadv_orig_dump() local [all...] |
H A 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);
|
H A D | main.c | 146 * @soft_iface: netdev struct of the soft interface 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() 256 * @soft_iface: netdev struct of the soft interface 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() [all...] |
H A D | multicast.c | 77 * @soft_iface: netdev struct of the mesh interface 85 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() 153 * @bridge: bridge interface on top of the soft_iface if present, 168 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get() 184 * @bridge: bridge interface on top of the soft_iface if present, 198 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get() 215 * @bridge: bridge interface on top of the soft_iface if present, 248 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_flags_get() 696 if (!batadv_tt_local_add(bat_priv->soft_iface, in batadv_mcast_mla_tt_add() 871 struct net_device *soft_iface = bat_priv->soft_iface; __batadv_mcast_mla_update() local 2001 struct net_device *soft_iface; batadv_mcast_netlink_get_primary() local [all...] |
H A D | bat_iv_ogm.c | 335 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() [all...] |
H A D | trace.h | 37 __string(device, bat_priv->soft_iface->name) 43 __assign_str(device, bat_priv->soft_iface->name);
|
H A D | bat_v_ogm.c | 124 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() [all...] |
H A 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);
|