batman-adv: Drop per algo GW section class code
authorSven Eckelmann <sven@narfation.org>
Wed, 2 Aug 2023 08:39:28 +0000 (10:39 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 14 Aug 2023 16:01:21 +0000 (18:01 +0200)
commit6f96d46f9a1ad1c02589b598c56ea881094129d8
tree124052fd793a2062206d4c5c520c108ce42fca24
parent02e61f06a97e7ba73fa44046d6da097e5c2aacc8
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>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v.c
net/batman-adv/gateway_common.c
net/batman-adv/gateway_common.h
net/batman-adv/netlink.c
net/batman-adv/types.h