aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2018-11-21 08:02:36 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-21 17:10:30 -0800
commit45598c1cee69b9c7ce111fa634226ab335fafabe (patch)
tree42548da91acb009def66e9190f54d970762f2e64 /include
parentvxlan: vxlan_fdb_notify(): Make switchdev notification configurable (diff)
downloadlinux-dev-45598c1cee69b9c7ce111fa634226ab335fafabe.tar.xz
linux-dev-45598c1cee69b9c7ce111fa634226ab335fafabe.zip
vxlan: Mark user-added FDB entries
The VXLAN driver needs to differentiate between FDB entries learned by the VXLAN driver, and those added by the user. The latter ones shouldn't be taken over by external learning events. This is in accordance with bridge behavior. Therefore, extend the flags bitfield to 16 bits and add a new private NTF flag to mark the user-added entries. This seems preferable to adding a dedicated boolean, because passing the flag, unlike passing e.g. a true, makes it clear what the meaning of the bit is. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/vxlan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/vxlan.h b/include/net/vxlan.h
index ec999c49df1f..b73c670df184 100644
--- a/include/net/vxlan.h
+++ b/include/net/vxlan.h
@@ -421,6 +421,7 @@ struct switchdev_notifier_vxlan_fdb_info {
u8 eth_addr[ETH_ALEN];
__be32 vni;
bool offloaded;
+ bool added_by_user;
};
#if IS_ENABLED(CONFIG_VXLAN)