summaryrefslogtreecommitdiff
path: root/net/batman-adv/types.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2023-08-02 11:39:28 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2023-08-14 19:01:21 +0300
commit6f96d46f9a1ad1c02589b598c56ea881094129d8 (patch)
tree124052fd793a2062206d4c5c520c108ce42fca24 /net/batman-adv/types.h
parent02e61f06a97e7ba73fa44046d6da097e5c2aacc8 (diff)
downloadlinux-6f96d46f9a1ad1c02589b598c56ea881094129d8.tar.xz
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/types.h')
-rw-r--r--net/batman-adv/types.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index ca9449ec9836..54c2b8fa48cc 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -2191,11 +2191,10 @@ struct batadv_algo_gw_ops {
void (*init_sel_class)(struct batadv_priv *bat_priv);
/**
- * @store_sel_class: parse and stores a new GW selection class
- * (optional)
+ * @sel_class_max: maximum allowed GW selection class
*/
- ssize_t (*store_sel_class)(struct batadv_priv *bat_priv, char *buff,
- size_t count);
+ u32 sel_class_max;
+
/**
* @get_best_gw_node: select the best GW from the list of available
* nodes (optional)