Re: [patch net 1/2] mlxsw: spectrum: Fix refcount bug on span entries

2016-11-11 Thread Jiri Pirko
Fri, Nov 11, 2016 at 01:49:28PM CET, ido...@idosch.org wrote: >On Fri, Nov 11, 2016 at 11:20:41AM +0100, Jiri Pirko wrote: >> From: Yotam Gigi >> >> When binding port to a newly created span entry, its refcount is set 0 >> even though it has a bound port. That leeds to

Re: [patch net 1/2] mlxsw: spectrum: Fix refcount bug on span entries

2016-11-11 Thread Ido Schimmel
On Fri, Nov 11, 2016 at 11:20:41AM +0100, Jiri Pirko wrote: > From: Yotam Gigi > > When binding port to a newly created span entry, its refcount is set 0 > even though it has a bound port. That leeds to unexpected behaviour when s/leeds/leads/ > the user tries to delete

[patch net 1/2] mlxsw: spectrum: Fix refcount bug on span entries

2016-11-11 Thread Jiri Pirko
From: Yotam Gigi When binding port to a newly created span entry, its refcount is set 0 even though it has a bound port. That leeds to unexpected behaviour when the user tries to delete that port from the span entry. Change the binding process to increase the refcount of