Searched refs:gw_mode (Results 1 – 7 of 7) sorted by relevance
164 char gw_mode; in batadv_gw_tvlv_container_update() local166 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_gw_tvlv_container_update()168 switch (gw_mode) { in batadv_gw_tvlv_container_update()263 (atomic_read(&bat_priv->gw_mode) == BATADV_GW_MODE_CLIENT) && in batadv_gw_tvlv_ogm_handler_v1()
202 int gw_mode; in batadv_interface_tx() local257 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_interface_tx()260 if (gw_mode == BATADV_GW_MODE_OFF) { in batadv_interface_tx()281 else if ((gw_mode == BATADV_GW_MODE_SERVER) && in batadv_interface_tx()790 atomic_set(&bat_priv->gw_mode, BATADV_GW_MODE_OFF); in batadv_softif_init_late()
370 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_show_gw_mode()419 if (atomic_read(&bat_priv->gw_mode) == gw_mode_tmp) in batadv_store_gw_mode()422 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_store_gw_mode()451 atomic_set(&bat_priv->gw_mode, (unsigned int)gw_mode_tmp); in batadv_store_gw_mode()560 static BATADV_ATTR(gw_mode, S_IRUGO | S_IWUSR, batadv_show_gw_mode,
241 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop()269 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election()810 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_gw_out_of_range()
797 atomic_t gw_mode; member
48 node if gw_mode was set to 'server'.50 What: /sys/class/net/<mesh_iface>/mesh/gw_mode62 to choose a gateway if gw_mode was set to 'client'.
72 #bridge_loop_avoidance gw_mode log_level