Lines Matching refs:soft_iface

89 static struct hard_iface *hardif_get_active(const struct net_device *soft_iface)  in hardif_get_active()  argument
95 if (hard_iface->soft_iface != soft_iface) in hardif_get_active()
185 int hardif_min_mtu(struct net_device *soft_iface) in hardif_min_mtu() argument
187 const struct bat_priv *bat_priv = netdev_priv(soft_iface); in hardif_min_mtu()
202 if (hard_iface->soft_iface != soft_iface) in hardif_min_mtu()
214 void update_min_mtu(struct net_device *soft_iface) in update_min_mtu() argument
218 min_mtu = hardif_min_mtu(soft_iface); in update_min_mtu()
219 if (soft_iface->mtu != min_mtu) in update_min_mtu()
220 soft_iface->mtu = min_mtu; in update_min_mtu()
231 bat_priv = netdev_priv(hard_iface->soft_iface); in hardif_activate_interface()
244 bat_info(hard_iface->soft_iface, "Interface activated: %s\n", in hardif_activate_interface()
247 update_min_mtu(hard_iface->soft_iface); in hardif_activate_interface()
262 bat_info(hard_iface->soft_iface, "Interface deactivated: %s\n", in hardif_deactivate_interface()
265 update_min_mtu(hard_iface->soft_iface); in hardif_deactivate_interface()
272 struct net_device *soft_iface; in hardif_enable_interface() local
286 soft_iface = dev_get_by_name(&init_net, iface_name); in hardif_enable_interface()
288 if (!soft_iface) { in hardif_enable_interface()
289 soft_iface = softif_create(iface_name); in hardif_enable_interface()
291 if (!soft_iface) { in hardif_enable_interface()
297 dev_hold(soft_iface); in hardif_enable_interface()
300 if (!softif_is_valid(soft_iface)) { in hardif_enable_interface()
302 soft_iface->name); in hardif_enable_interface()
303 dev_put(soft_iface); in hardif_enable_interface()
308 hard_iface->soft_iface = soft_iface; in hardif_enable_interface()
309 bat_priv = netdev_priv(hard_iface->soft_iface); in hardif_enable_interface()
314 bat_err(hard_iface->soft_iface, in hardif_enable_interface()
333 bat_info(hard_iface->soft_iface, "Adding interface: %s\n", in hardif_enable_interface()
338 bat_info(hard_iface->soft_iface, in hardif_enable_interface()
345 bat_info(hard_iface->soft_iface, in hardif_enable_interface()
353 bat_err(hard_iface->soft_iface, in hardif_enable_interface()
370 struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in hardif_disable_interface()
379 bat_info(hard_iface->soft_iface, "Removing interface: %s\n", in hardif_disable_interface()
390 new_if = hardif_get_active(hard_iface->soft_iface); in hardif_disable_interface()
404 dev_put(hard_iface->soft_iface); in hardif_disable_interface()
408 softif_destroy(hard_iface->soft_iface); in hardif_disable_interface()
410 hard_iface->soft_iface = NULL; in hardif_disable_interface()
441 hard_iface->soft_iface = NULL; in hardif_add_interface()
517 if (hard_iface->soft_iface) in hard_if_event()
518 update_min_mtu(hard_iface->soft_iface); in hard_if_event()
526 bat_priv = netdev_priv(hard_iface->soft_iface); in hard_if_event()
575 if (!hard_iface->soft_iface) in batman_skb_recv()
578 bat_priv = netdev_priv(hard_iface->soft_iface); in batman_skb_recv()