Re: [patch net-next v2 2/3] net/sched: Change cls_flower to use IDR

2017-08-30 Thread Jamal Hadi Salim
On 17-08-30 02:31 AM, Chris Mi wrote: Currently, all filters with the same priority are linked in a doubly linked list. Every filter should have a unique handle. To make the handle unique, we need to iterate the list every time to see if the handle exists or not when inserting a new filter. It

[patch net-next v2 2/3] net/sched: Change cls_flower to use IDR

2017-08-30 Thread Chris Mi
Currently, all filters with the same priority are linked in a doubly linked list. Every filter should have a unique handle. To make the handle unique, we need to iterate the list every time to see if the handle exists or not when inserting a new filter. It is time-consuming. For example, it takes