]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3581c1606a10faa967e6d1a92e691c7259028e66
tree6616c8fe3f4bc1a4c1aaeb6f2127db6025b7d156
parentc45bd6617d2c3d6102a1f6b1e26221781036da3b
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