diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2018-09-27 15:05:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-28 10:43:11 -0700 |
commit | 1288aa7af20cfa25cb00cf0d77f94d1891644c83 (patch) | |
tree | 624687f27a6f25d4e4f54644f23d3c71048eea84 /net/bridge | |
parent | 4605168f71fa8c0db0a2a900bdfcae851ebed7dd (diff) |
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>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_fdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index a56ed7f2a3a3..74331690a390 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c @@ -504,6 +504,7 @@ static struct net_bridge_fdb_entry *fdb_create(struct net_bridge *br, fdb->added_by_user = 0; fdb->added_by_external_learn = 0; fdb->offloaded = 0; + fdb->is_sticky = 0; fdb->updated = fdb->used = jiffies; if (rhashtable_lookup_insert_fast(&br->fdb_hash_tbl, &fdb->rhnode, |