diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2018-09-11 09:39:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-12 20:30:03 -0700 |
commit | 435f2e7cc0b783615d7fbcf08f5f00d289f9caeb (patch) | |
tree | 5f5f9be24f4b7e60cc7b722556791f14c6fe622e /net/bridge/br_private.h | |
parent | 15665342d48ba7fc7c2284663332381bc3083d33 (diff) | |
download | linux-435f2e7cc0b783615d7fbcf08f5f00d289f9caeb.tar.gz linux-435f2e7cc0b783615d7fbcf08f5f00d289f9caeb.tar.bz2 linux-435f2e7cc0b783615d7fbcf08f5f00d289f9caeb.zip |
net: bridge: add support for sticky fdb entries
Add support for entries which are "sticky", i.e. will not change their port
if they show up from a different one. A new ndm flag is introduced for that
purpose - NTF_STICKY. We allow to set it only to non-local entries.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 11ed2029985f..d21035a17f4c 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -181,6 +181,7 @@ struct net_bridge_fdb_entry { struct hlist_node fdb_node; unsigned char is_local:1, is_static:1, + is_sticky:1, added_by_user:1, added_by_external_learn:1, offloaded:1; |