]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: dat: prevent false sharing between VLANs
authorSven Eckelmann <sven@narfation.org>
Sat, 13 Jun 2026 21:50:28 +0000 (23:50 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 14 Jun 2026 07:21:39 +0000 (09:21 +0200)
commit20d7658b74169f86d4ac01b9185b3eadddf71f28
treed5148d38fa637021869e30f1097ea72d680addee
parent12407d5f61c2653a64f2ff4b22f3c267f8420ef1
batman-adv: dat: prevent false sharing between VLANs

The local hash of DAT entries is supposed to be VLAN (VID) aware. But
the adding to the hash and the search in the hash were not checking the VID
information of the hash entries. The entries would therefore only be
correctly separated when batadv_hash_dat() didn't select the same buckets
for different VIDs.

Cc: stable@kernel.org
Fixes: be1db4f6615b ("batman-adv: make the Distributed ARP Table vlan aware")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/distributed-arp-table.c