Re: [patch net-next v2 3/3] net/sched: Change act_api and act_xxx modules to use IDR

From
Jamal Hadi Salim <jhs@mojatatu.com>
Date
2017-08-30 12:11:13
Reply to
Chris Mi, 2017-08-30
On 17-08-30 02:31 AM, Chris Mi wrote:
Typically, each TC filter has its own action. All the actions of the
same type are saved in its hash table. But the hash buckets are too
small that it degrades to a list. And the performance is greatly
affected. For example, it takes about 0m11.914s to insert 64K rules.
If we convert the hash table to IDR, it only takes about 0m1.500s.
The improvement is huge.

But please note that the test result is based on previous patch that
cls_flower uses IDR.

Signed-off-by: Chris Mi <redacted>
Signed-off-by: Jiri Pirko <redacted>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>

Also already acked this before but you left it out in this
version. If you make changes to the patch then you will need
a new ACK.

Dont forget to update selftests please.

cheers,
jamal
Thread (9 messages) 9 messages, 3 authors, last reply 2017-08-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help