Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-16 Thread Vlad Buslov
On Sat 14 Jul 2018 at 15:50, Or Gerlitz wrote: > On Tue, Jul 10, 2018 at 8:02 PM, Vlad Buslov wrote: >> >> On Tue 10 Jul 2018 at 13:55, Simon Horman wrote: >>> On Mon, Jul 09, 2018 at 01:29:11PM +0300, Vlad Buslov wrote: Extend struct tcf_walker with additional 'cookie' field. It is inten

Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-14 Thread Or Gerlitz
On Tue, Jul 10, 2018 at 8:02 PM, Vlad Buslov wrote: > > On Tue 10 Jul 2018 at 13:55, Simon Horman wrote: >> On Mon, Jul 09, 2018 at 01:29:11PM +0300, Vlad Buslov wrote: >>> Extend struct tcf_walker with additional 'cookie' field. It is intended to >>> be used by classifier walk implementations to

Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-13 Thread David Miller
From: Vlad Buslov Date: Mon, 9 Jul 2018 13:29:11 +0300 > Extend struct tcf_walker with additional 'cookie' field. It is intended to > be used by classifier walk implementations to continue iteration directly > from particular filter, instead of iterating 'skip' number of times. > > Change flowe

Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-13 Thread Simon Horman
On Tue, Jul 10, 2018 at 08:02:10PM +0300, Vlad Buslov wrote: > > On Tue 10 Jul 2018 at 13:55, Simon Horman wrote: > > On Mon, Jul 09, 2018 at 01:29:11PM +0300, Vlad Buslov wrote: > >> Extend struct tcf_walker with additional 'cookie' field. It is intended to > >> be used by classifier walk implem

Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-10 Thread Vlad Buslov
On Tue 10 Jul 2018 at 13:55, Simon Horman wrote: > On Mon, Jul 09, 2018 at 01:29:11PM +0300, Vlad Buslov wrote: >> Extend struct tcf_walker with additional 'cookie' field. It is intended to >> be used by classifier walk implementations to continue iteration directly >> from particular filter, in

Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-10 Thread Simon Horman
On Mon, Jul 09, 2018 at 01:29:11PM +0300, Vlad Buslov wrote: > Extend struct tcf_walker with additional 'cookie' field. It is intended to > be used by classifier walk implementations to continue iteration directly > from particular filter, instead of iterating 'skip' number of times. > > Change fl

[PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-09 Thread Vlad Buslov
Extend struct tcf_walker with additional 'cookie' field. It is intended to be used by classifier walk implementations to continue iteration directly from particular filter, instead of iterating 'skip' number of times. Change flower walk implementation to save filter handle in 'cookie'. Each time f