vxlan: vxlan_fdb_notify(): Make switchdev notification configurable
authorPetr Machata <petrm@mellanox.com>
Wed, 21 Nov 2018 08:02:35 +0000 (08:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 01:10:30 +0000 (17:10 -0800)
commit0e6160f3f5a9a817c3100f02e1605c49cbb2fe78
tree6616c8fe3f4bc1a4c1aaeb6f2127db6025b7d156
parent5572c815603b316d0807f18fbfabace7572cc0e2
vxlan: vxlan_fdb_notify(): Make switchdev notification configurable

In a following patch, vxlan is extended to allow hardware FDB learning.
For FDB entries learned this way, switchdev notifications should not be
sent again, because the driver already knows about these entries.

To that end, add an argument vxlan_fdb_notify() to determine whether
the switchdev notifications should be sent. Propagate the argument to
all call sites transitively, eventually passing true in all root calls.

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