Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / net / batman-adv / gateway_common.h
blobc3a0c5a7f7e9d09be5be2b7854e4db1a49342404
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2009-2020 B.A.T.M.A.N. contributors:
4 * Marek Lindner
5 */
7 #ifndef _NET_BATMAN_ADV_GATEWAY_COMMON_H_
8 #define _NET_BATMAN_ADV_GATEWAY_COMMON_H_
10 #include "main.h"
12 #include <linux/netdevice.h>
13 #include <linux/types.h>
15 /**
16 * enum batadv_bandwidth_units - bandwidth unit types
18 enum batadv_bandwidth_units {
19 /** @BATADV_BW_UNIT_KBIT: unit type kbit */
20 BATADV_BW_UNIT_KBIT,
22 /** @BATADV_BW_UNIT_MBIT: unit type mbit */
23 BATADV_BW_UNIT_MBIT,
26 #define BATADV_GW_MODE_OFF_NAME "off"
27 #define BATADV_GW_MODE_CLIENT_NAME "client"
28 #define BATADV_GW_MODE_SERVER_NAME "server"
30 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
31 size_t count);
32 void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv);
33 void batadv_gw_init(struct batadv_priv *bat_priv);
34 void batadv_gw_free(struct batadv_priv *bat_priv);
35 bool batadv_parse_throughput(struct net_device *net_dev, char *buff,
36 const char *description, u32 *throughput);
38 #endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */