diff options
author | Sven Eckelmann <sven@narfation.org> | 2018-08-16 17:54:45 +0300 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2018-09-15 10:51:10 +0300 |
commit | dee222c7b20cdfff4b4d554bb4a5199572c5f28c (patch) | |
tree | 05da4b067681ffcdf74b510c4ce68809fdacd2d2 /net/batman-adv/soft-interface.c | |
parent | d331a739949992043b135fcfba649196b397ec3b (diff) | |
download | linux-dee222c7b20cdfff4b4d554bb4a5199572c5f28c.tar.xz |
batman-adv: Move OGM rebroadcast stats to orig_ifinfo
B.A.T.M.A.N. IV requires the number of rebroadcast from a neighboring
originator. These statistics are gathered per interface which transmitted
the OGM (and then received it again). Since an originator is not interface
specific, a resizable array was used in each originator.
This resizable array had an entry for each interface and had to be resizes
(for all OGMs) when the number of active interface was modified. This could
cause problems when a large number of interface is added and not enough
continuous memory is available to allocate the array.
There is already a per interface originator structure "batadv_orig_ifinfo"
which can be used to store this information.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 1485263a348b..e121c59fc1fa 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -833,7 +833,6 @@ static int batadv_softif_init_late(struct net_device *dev) atomic_set(&bat_priv->frag_seqno, random_seqno); bat_priv->primary_if = NULL; - bat_priv->num_ifaces = 0; batadv_nc_init_bat_priv(bat_priv); |