]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Add a function to init switchdev_notifier_vxlan_fdb_info
authorPetr Machata <petrm@mellanox.com>
Fri, 7 Dec 2018 19:55:03 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:59:08 +0000 (12:59 -0800)
commit63cb8c401d46d94e6138eb81938ed8469ff201a0
tree0690e2809f75bc913fd1049959a1888755b3a36c
parentce627f284ad9fca23832eb455ecfbf322aff59b5
vxlan: Add a function to init switchdev_notifier_vxlan_fdb_info

There are currently two places that need to initialize the notifier info
structure, and one more is coming next when vxlan_fdb_replay() is
introduced. These three instances have / will have very similar code
that is easy to abstract away into a named function.

Add such function, vxlan_fdb_switchdev_notifier_info(), and call it from
vxlan_fdb_switchdev_call_notifiers() and vxlan_fdb_find_uc().

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