RE: [patch net-next v2 0/3] net/sched: Improve getting objects by indexes

From
Chris Mi <hidden>
Date
2017-08-31 01:05:43
Reply to
David Miller, 2017-08-30
-----Original Message-----
From: David Miller [mailto:davem@davemloft.net]
Sent: Thursday, August 31, 2017 5:39 AM
To: Chris Mi <redacted>
Cc: <redacted>; jhs@mojatatu.com;
xiyou.wangcong@gmail.com; jiri@resnulli.us; mawilcox@microsoft.com
Subject: Re: [patch net-next v2 0/3] net/sched: Improve getting objects by
indexes

From: Chris Mi <redacted>
Date: Wed, 30 Aug 2017 02:31:56 -0400
quoted
Using current TC code, it is very slow to insert a lot of rules.

In order to improve the rules update rate in TC, we introduced the
following two changes:
        1) changed cls_flower to use IDR to manage the filters.
        2) changed all act_xxx modules to use IDR instead of
           a small hash table

But IDR has a limitation that it uses int. TC handle uses u32.
To make sure there is no regression, we add several new IDR APIs to
support unsigned long.

v2
==

Addressed Hannes's comment:
express idr_alloc in terms of idr_alloc_ext and most of the other
functions
Series applied, thanks.
Thank you, David,

-Chris
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