Lines Matching refs:soft_iface

558 static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)  in interface_tx()  argument
561 struct bat_priv *bat_priv = netdev_priv(soft_iface); in interface_tx()
574 soft_iface->trans_start = jiffies; in interface_tx()
586 softif_batman_recv(skb, soft_iface, vid); in interface_tx()
599 tt_local_add(soft_iface, ethhdr->h_source, skb->skb_iif); in interface_tx()
685 void interface_rx(struct net_device *soft_iface, in interface_rx() argument
689 struct bat_priv *bat_priv = netdev_priv(soft_iface); in interface_rx()
746 skb->protocol = eth_type_trans(skb, soft_iface); in interface_rx()
757 soft_iface->last_rx = jiffies; in interface_rx()
811 struct net_device *soft_iface; in softif_create() local
815 soft_iface = alloc_netdev(sizeof(*bat_priv), name, interface_setup); in softif_create()
817 if (!soft_iface) in softif_create()
820 ret = register_netdevice(soft_iface); in softif_create()
827 bat_priv = netdev_priv(soft_iface); in softif_create()
860 ret = sysfs_add_meshif(soft_iface); in softif_create()
864 ret = debugfs_add_meshif(soft_iface); in softif_create()
868 ret = mesh_init(soft_iface); in softif_create()
872 return soft_iface; in softif_create()
875 debugfs_del_meshif(soft_iface); in softif_create()
877 sysfs_del_meshif(soft_iface); in softif_create()
879 unregister_netdevice(soft_iface); in softif_create()
883 free_netdev(soft_iface); in softif_create()
888 void softif_destroy(struct net_device *soft_iface) in softif_destroy() argument
890 debugfs_del_meshif(soft_iface); in softif_destroy()
891 sysfs_del_meshif(soft_iface); in softif_destroy()
892 mesh_free(soft_iface); in softif_destroy()
893 unregister_netdevice(soft_iface); in softif_destroy()