Re: [B.A.T.M.A.N.] [RFC v2] batman-adv: prevent TT request storms by not sending inconsistent TT TLVLs

Sven Eckelmann
2018-05-10T15:50:48Z

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

On Donnerstag, 10. Mai 2018 16:41:37 CEST Marek Lindner wrote:
> rcu_read_lock();
> hlist_for_each_entry_rcu(vlan, &bat_priv->softif_vlan_list, list) {
> + vlan_entries = atomic_read(&vlan->tt.num_entries);
> + if (vlan_entries < 1)
> + continue;
> +
> num_vlan++;
> - num_entries += atomic_read(&vlan->tt.num_entries);
> + total_entries += vlan_entries;
> }

Please submit it on top of the maint branch before submitting it the next
time. The rcu_read_lock isn't there anymore.

The rest also applies only with some offsets (which sound like you have some
other modifications in your branch).

Kind regards,
Sven