Lines Matching refs:soft_iface
184 struct net_device *soft_iface)
187 struct batadv_priv *bat_priv = netdev_priv(soft_iface);
216 netif_trans_update(soft_iface);
253 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source,
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,
429 struct batadv_priv *bat_priv = netdev_priv(soft_iface);
469 skb->protocol = eth_type_trans(skb, soft_iface);
600 err = batadv_sysfs_add_vlan(bat_priv->soft_iface, vlan);
613 batadv_tt_local_add(bat_priv->soft_iface,
614 bat_priv->soft_iface->dev_addr, vid,
634 batadv_tt_local_remove(bat_priv, bat_priv->soft_iface->dev_addr,
681 ret = batadv_sysfs_add_vlan(bat_priv->soft_iface, vlan);
692 batadv_tt_local_add(bat_priv->soft_iface,
693 bat_priv->soft_iface->dev_addr, vid,
781 bat_priv->soft_iface = dev;
881 if (!hard_iface || hard_iface->soft_iface)
907 if (!hard_iface || hard_iface->soft_iface != dev)
1078 struct net_device *soft_iface;
1081 soft_iface = alloc_netdev(sizeof(struct batadv_priv), name,
1083 if (!soft_iface)
1086 dev_net_set(soft_iface, net);
1088 soft_iface->rtnl_link_ops = &batadv_link_ops;
1090 ret = register_netdevice(soft_iface);
1094 free_netdev(soft_iface);
1098 return soft_iface;
1103 * @soft_iface: the to-be-removed batman-adv interface
1105 void batadv_softif_destroy_sysfs(struct net_device *soft_iface)
1107 struct batadv_priv *bat_priv = netdev_priv(soft_iface);
1119 batadv_sysfs_del_meshif(soft_iface);
1120 unregister_netdevice(soft_iface);
1126 * @soft_iface: the to-be-removed batman-adv interface
1129 static void batadv_softif_destroy_netlink(struct net_device *soft_iface,
1132 struct batadv_priv *bat_priv = netdev_priv(soft_iface);
1137 if (hard_iface->soft_iface == soft_iface)
1149 batadv_sysfs_del_meshif(soft_iface);
1150 unregister_netdevice_queue(soft_iface, head);