]> www.infradead.org Git - users/jedix/linux-maple.git/commit
batman-adv: Don't keep redundant TT change events
authorRemi Pommarel <repk@triplefau.lt>
Fri, 22 Nov 2024 15:52:52 +0000 (16:52 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 5 Dec 2024 21:38:43 +0000 (22:38 +0100)
commitfca81aa3e653d68ac696f3ee994384cecacf3845
treefdb54df04fa6e67e7bf777a0095aec598e607ec1
parent8587e0e3f562b09bbfe0df1b0c506066095043e4
batman-adv: Don't keep redundant TT change events

When adding a local TT twice within the same OGM interval (e.g. happens
when flag get updated), the flags of the first TT change entry is updated
with the second one and both change events is added to the change list.
This leads to having the same ADD change entry twice. Similarly, a
DEL+DEL scenario is also creating twice the same event.

Deduplicate ADD+ADD or DEL+DEL scenarios to reduce the TT change events
that need to be sent in both OGM and TT response.

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Co-developed-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/translation-table.c