Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: bridge: explicitly zero is_sticky in fdb_create

We need to explicitly zero is_sticky when creating a new fdb, otherwise
we might get a stale value for a new entry.

Fixes: 435f2e7cc0b7 ("net: bridge: add support for sticky fdb entries")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Nikolay Aleksandrov and committed by
David S. Miller
1288aa7a 4605168f

+1
+1
net/bridge/br_fdb.c
··· 504 504 fdb->added_by_user = 0; 505 505 fdb->added_by_external_learn = 0; 506 506 fdb->offloaded = 0; 507 + fdb->is_sticky = 0; 507 508 fdb->updated = fdb->used = jiffies; 508 509 if (rhashtable_lookup_insert_fast(&br->fdb_hash_tbl, 509 510 &fdb->rhnode,