]> asedeno.scripts.mit.edu Git - linux.git/commit
vxlan: Mark user-added FDB entries
authorPetr Machata <petrm@mellanox.com>
Wed, 21 Nov 2018 08:02:36 +0000 (08:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 01:10:30 +0000 (17:10 -0800)
commit45598c1cee69b9c7ce111fa634226ab335fafabe
tree42548da91acb009def66e9190f54d970762f2e64
parent0e6160f3f5a9a817c3100f02e1605c49cbb2fe78
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>
drivers/net/vxlan.c
include/net/vxlan.h