diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2019-10-29 14:45:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-30 04:12:49 +0300 |
commit | b5cd9f7c42480ede119a390607a9dbe6263f6795 (patch) | |
tree | 31771d35330324fefd0edcf910e36df59a447885 /net/bridge/br_private.h | |
parent | ac3ca6af443aa495c7907e5010ac77fbd2450eaa (diff) | |
download | linux-b5cd9f7c42480ede119a390607a9dbe6263f6795.tar.xz |
net: bridge: fdb: convert added_by_external_learn to use bitops
Convert the added_by_external_learn field to a flag and use bitops.
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 bf4a4d1cc3bb..cf325177a34e 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -178,6 +178,7 @@ enum { BR_FDB_STATIC, BR_FDB_STICKY, BR_FDB_ADDED_BY_USER, + BR_FDB_ADDED_BY_EXT_LEARN, }; struct net_bridge_fdb_key { @@ -192,8 +193,7 @@ struct net_bridge_fdb_entry { struct net_bridge_fdb_key key; struct hlist_node fdb_node; unsigned long flags; - unsigned char added_by_external_learn:1, - offloaded:1; + unsigned char offloaded:1; /* write-heavy members should not affect lookups */ unsigned long updated ____cacheline_aligned_in_smp; |