Re: [patch net-next 09/20] net: sched: convert actions array into rcu list

2017-07-31 Thread Jiri Pirko
Mon, Jul 31, 2017 at 11:07:13PM CEST, xiyou.wangc...@gmail.com wrote: >On Fri, Jul 28, 2017 at 7:40 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Currently the actions are stored in array with array size. To traverse >> this array in fastpath, tcf_tree_lock is taken to protect it. Convert >> th

Re: [patch net-next 09/20] net: sched: convert actions array into rcu list

2017-07-31 Thread Cong Wang
On Fri, Jul 28, 2017 at 7:40 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Currently the actions are stored in array with array size. To traverse > this array in fastpath, tcf_tree_lock is taken to protect it. Convert > the array into a singly linked list, similar to the filter chains style > and

Re: [patch net-next 09/20] net: sched: convert actions array into rcu list

2017-07-30 Thread Jamal Hadi Salim
On 17-07-28 10:40 AM, Jiri Pirko wrote: From: Jiri Pirko Currently the actions are stored in array with array size. To traverse this array in fastpath, tcf_tree_lock is taken to protect it. Convert the array into a singly linked list, similar to the filter chains style and allow traversal prote

[patch net-next 09/20] net: sched: convert actions array into rcu list

2017-07-28 Thread Jiri Pirko
From: Jiri Pirko Currently the actions are stored in array with array size. To traverse this array in fastpath, tcf_tree_lock is taken to protect it. Convert the array into a singly linked list, similar to the filter chains style and allow traversal protected by rcu. Signed-off-by: Jiri Pirko -