Re: [PATCH net-next] net: sched: flower: fix filter net reference counting

2019-04-12 Thread Ido Schimmel
On Fri, Apr 12, 2019 at 12:54:19AM +0300, Vlad Buslov wrote: > Fix net reference counting in fl_change() and remove redundant call to > tcf_exts_get_net() from __fl_delete(). __fl_put() already tries to get net > before releasing exts and deallocating a filter, so this code caused flower > classifi

[PATCH net-next] net: sched: flower: fix filter net reference counting

2019-04-11 Thread Vlad Buslov
Fix net reference counting in fl_change() and remove redundant call to tcf_exts_get_net() from __fl_delete(). __fl_put() already tries to get net before releasing exts and deallocating a filter, so this code caused flower classifier to obtain net twice per filter that is being deleted. Implementat