]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: make the TT global purge routine VLAN specific
authorAntonio Quartulli <antonio@open-mesh.com>
Wed, 7 Aug 2013 16:28:55 +0000 (18:28 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 19 Oct 2013 21:25:37 +0000 (23:25 +0200)
commitd99a045ffef1587b9f88fceb827b1ab0a3993fee
treea3088a8c8217330e4d9fc84413ff9fa24a4debaf
parent7cf8c00d89df673ec17db1c6756e6a7042478333
batman-adv: make the TT global purge routine VLAN specific

Instead of unconditionally removing all the TT entries
served by a given originator, make tt_global_orig_del()
remove only entries matching a given VLAN identifier
provided as argument.

If such argument is negative all the global entries
served by the originator are removed.

This change is used into the BLA code to purge entries
served by a newly discovered Backbone node, but limiting
the operation only to those connected to the VLAN where the
backbone has been discovered.

Cc: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/originator.c
net/batman-adv/routing.c
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h