diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2019-10-29 12:45:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-30 02:12:49 +0100 |
commit | 29e63fffd666f1945756882d4b02bc7bec132101 (patch) | |
tree | fe7052e0d0c30c0a6bcb9ac3133fa3637465fdc0 /net/bridge/br_private.h | |
parent | net: bridge: fdb: convert is_local to bitops (diff) | |
download | linux-29e63fffd666f1945756882d4b02bc7bec132101.tar.xz linux-29e63fffd666f1945756882d4b02bc7bec132101.zip |
net: bridge: fdb: convert is_static to bitops
Convert the is_static to bitops, make use of the combined
test_and_set/clear_bit to simplify expressions in fdb_add_entry.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 888cbe9c639a..c5258fad76e5 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -175,6 +175,7 @@ struct net_bridge_vlan_group { /* bridge fdb flags */ enum { BR_FDB_LOCAL, + BR_FDB_STATIC, }; struct net_bridge_fdb_key { @@ -189,8 +190,7 @@ struct net_bridge_fdb_entry { struct net_bridge_fdb_key key; struct hlist_node fdb_node; unsigned long flags; - unsigned char is_static:1, - is_sticky:1, + unsigned char is_sticky:1, added_by_user:1, added_by_external_learn:1, offloaded:1; |