Re: [Bridge] [PATCH net-next 01/12] vxlan: Add a function to init switchdev_notifier_vxlan_fdb_info

2018-12-06 Thread Petr Machata
David Miller writes: > From: Ido Schimmel > Date: Wed, 5 Dec 2018 15:50:23 + > >> +static struct switchdev_notifier_vxlan_fdb_info >> +vxlan_fdb_switchdev_notifier_info(const struct vxlan_dev *vxlan, >> + const struct vxlan_fdb *fdb, >> +

Re: [Bridge] [PATCH net-next 01/12] vxlan: Add a function to init switchdev_notifier_vxlan_fdb_info

2018-12-05 Thread David Miller
From: Ido Schimmel Date: Wed, 5 Dec 2018 15:50:23 + > +static struct switchdev_notifier_vxlan_fdb_info > +vxlan_fdb_switchdev_notifier_info(const struct vxlan_dev *vxlan, > + const struct vxlan_fdb *fdb, > + const struct vxlan_rdst

[Bridge] [PATCH net-next 01/12] vxlan: Add a function to init switchdev_notifier_vxlan_fdb_info

2018-12-05 Thread Ido Schimmel
From: Petr Machata 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