Lines Matching refs:hard_iface
44 static void batadv_v_iface_activate(struct batadv_hard_iface *hard_iface) in batadv_v_iface_activate() argument
46 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate()
52 batadv_v_elp_iface_activate(primary_if, hard_iface); in batadv_v_iface_activate()
60 if (hard_iface->if_status == BATADV_IF_TO_BE_ACTIVATED) in batadv_v_iface_activate()
61 hard_iface->if_status = BATADV_IF_ACTIVE; in batadv_v_iface_activate()
64 static int batadv_v_iface_enable(struct batadv_hard_iface *hard_iface) in batadv_v_iface_enable() argument
68 ret = batadv_v_elp_iface_enable(hard_iface); in batadv_v_iface_enable()
72 ret = batadv_v_ogm_iface_enable(hard_iface); in batadv_v_iface_enable()
74 batadv_v_elp_iface_disable(hard_iface); in batadv_v_iface_enable()
79 static void batadv_v_iface_disable(struct batadv_hard_iface *hard_iface) in batadv_v_iface_disable() argument
81 batadv_v_ogm_iface_disable(hard_iface); in batadv_v_iface_disable()
82 batadv_v_elp_iface_disable(hard_iface); in batadv_v_iface_disable()
85 static void batadv_v_primary_iface_set(struct batadv_hard_iface *hard_iface) in batadv_v_primary_iface_set() argument
87 batadv_v_elp_primary_iface_set(hard_iface); in batadv_v_primary_iface_set()
88 batadv_v_ogm_primary_iface_set(hard_iface); in batadv_v_primary_iface_set()
98 static void batadv_v_iface_update_mac(struct batadv_hard_iface *hard_iface) in batadv_v_iface_update_mac() argument
100 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac()
104 if (primary_if != hard_iface) in batadv_v_iface_update_mac()
107 batadv_v_primary_iface_set(hard_iface); in batadv_v_iface_update_mac()
182 struct batadv_hard_iface *hard_iface, in batadv_v_neigh_dump_hardif() argument
189 &hard_iface->neigh_list, list) { in batadv_v_neigh_dump_hardif()
216 struct batadv_hard_iface *hard_iface; in batadv_v_neigh_dump() local
232 list_for_each_entry_rcu(hard_iface, &batadv_hardif_list, list) { in batadv_v_neigh_dump()
233 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_neigh_dump()
241 bat_priv, hard_iface, in batadv_v_neigh_dump()
833 void batadv_v_hardif_init(struct batadv_hard_iface *hard_iface) in batadv_v_hardif_init() argument
838 atomic_set(&hard_iface->bat_v.throughput_override, 0); in batadv_v_hardif_init()
839 atomic_set(&hard_iface->bat_v.elp_interval, 500); in batadv_v_hardif_init()
841 hard_iface->bat_v.aggr_len = 0; in batadv_v_hardif_init()
842 skb_queue_head_init(&hard_iface->bat_v.aggr_list); in batadv_v_hardif_init()
843 INIT_DELAYED_WORK(&hard_iface->bat_v.aggr_wq, in batadv_v_hardif_init()