summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_common.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2023-08-02 10:39:28 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2023-08-14 18:01:21 +0200
commit6f96d46f9a1ad1c02589b598c56ea881094129d8 (patch)
tree124052fd793a2062206d4c5c520c108ce42fca24 /net/batman-adv/gateway_common.h
parent02e61f06a97e7ba73fa44046d6da097e5c2aacc8 (diff)
downloadlinux-6f96d46f9a1ad1c02589b598c56ea881094129d8.tar.gz
linux-6f96d46f9a1ad1c02589b598c56ea881094129d8.tar.bz2
linux-6f96d46f9a1ad1c02589b598c56ea881094129d8.zip
batman-adv: Drop per algo GW section class code
This code was only used in the past for the sysfs interface. But since this was replace with netlink, it was never executed. The function pointer was only checked to figure out whether the limit 255 (B.A.T.M.A.N. IV) or 2**32-1 (B.A.T.M.A.N. V) should be used as limit. So instead of keeping the function pointer, just store the limits directly in struct batadv_algo_gw_ops. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/gateway_common.h')
-rw-r--r--net/batman-adv/gateway_common.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/batman-adv/gateway_common.h b/net/batman-adv/gateway_common.h
index cb2e72d7ab14..5d097d6a1dd9 100644
--- a/net/batman-adv/gateway_common.h
+++ b/net/batman-adv/gateway_common.h
@@ -9,9 +9,6 @@
#include "main.h"
-#include <linux/netdevice.h>
-#include <linux/types.h>
-
/**
* enum batadv_bandwidth_units - bandwidth unit types
*/
@@ -30,7 +27,5 @@ enum batadv_bandwidth_units {
void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv);
void batadv_gw_init(struct batadv_priv *bat_priv);
void batadv_gw_free(struct batadv_priv *bat_priv);
-bool batadv_parse_throughput(struct net_device *net_dev, char *buff,
- const char *description, u32 *throughput);
#endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */