]> asedeno.scripts.mit.edu Git - linux.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)
commitff23b91ce1ae686e436e9926de1fda3342ef26f8
tree0690e2809f75bc913fd1049959a1888755b3a36c
parent6b241e411607a8f78bee74b96655e9d7835ea8ba
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