batman-adv: Store modification counter via hash helpers
authorSven Eckelmann <sven@narfation.org>
Tue, 30 Oct 2018 21:01:25 +0000 (22:01 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 12 Nov 2018 09:41:51 +0000 (10:41 +0100)
commit05abd7bcc9cdbedf9deff27fe0766c70c4f2ae0d
treec389b27c0b16e602363268f48f34f0188e1d912f
parentfb69be697916a2d0a9badcdef7f20fcfad1233bc
batman-adv: Store modification counter via hash helpers

Multiple datastructures use the hash helper functions to add and remove
entries from the simple hlist based hashes. These are often also dumped to
userspace via netlink and thus should have a generation sequence counter.

Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hash.c
net/batman-adv/hash.h