Re: [PATCH net v2] vxlan: do not destroy fdb if register_netdevice() is failed

2019-06-27 Thread Taehee Yoo
On Fri, 28 Jun 2019 at 03:33, Roopa Prabhu wrote: > > On Thu, Jun 27, 2019 at 7:50 AM Taehee Yoo wrote: > > > > __vxlan_dev_create() destroys FDB using specific pointer which indicates > > a fdb when error occurs. > > But that pointer should not be used when register_netdevice() fails because > >

Re: [PATCH net v2] vxlan: do not destroy fdb if register_netdevice() is failed

2019-06-27 Thread Roopa Prabhu
On Thu, Jun 27, 2019 at 7:50 AM Taehee Yoo wrote: > > __vxlan_dev_create() destroys FDB using specific pointer which indicates > a fdb when error occurs. > But that pointer should not be used when register_netdevice() fails because > register_netdevice() internally destroys fdb when error occurs.

[PATCH net v2] vxlan: do not destroy fdb if register_netdevice() is failed

2019-06-27 Thread Taehee Yoo
__vxlan_dev_create() destroys FDB using specific pointer which indicates a fdb when error occurs. But that pointer should not be used when register_netdevice() fails because register_netdevice() internally destroys fdb when error occurs. This patch makes vxlan_fdb_create() to do not link fdb entry