]> 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)
commit9a6d7646996f8168956a9294d4e685a322b216b7
tree6616c8fe3f4bc1a4c1aaeb6f2127db6025b7d156
parent2e938855053eb5f5f73112e6e33f3553ae52bda0
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