Searched refs:gw_mode (Results 1 – 7 of 7) sorted by relevance
119 char gw_mode; in batadv_gw_tvlv_container_update() local121 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_gw_tvlv_container_update()123 switch (gw_mode) { in batadv_gw_tvlv_container_update()217 (atomic_read(&bat_priv->gw_mode) == BATADV_GW_MODE_CLIENT) && in batadv_gw_tvlv_ogm_handler_v1()
172 int gw_mode; in batadv_interface_tx() local227 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_interface_tx()230 if (gw_mode == BATADV_GW_MODE_OFF) { in batadv_interface_tx()251 else if ((gw_mode == BATADV_GW_MODE_SERVER) && in batadv_interface_tx()756 atomic_set(&bat_priv->gw_mode, BATADV_GW_MODE_OFF); in batadv_softif_init_late()
351 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_show_gw_mode()400 if (atomic_read(&bat_priv->gw_mode) == gw_mode_tmp) in batadv_store_gw_mode()403 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_store_gw_mode()432 atomic_set(&bat_priv->gw_mode, (unsigned int)gw_mode_tmp); in batadv_store_gw_mode()541 static BATADV_ATTR(gw_mode, S_IRUGO | S_IWUSR, batadv_show_gw_mode,
228 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop()255 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election()818 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_gw_out_of_range()
782 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