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
Signed-off-by: Jiri Pirko
---
include/net/act_api.h | 76 +-
net/sched/act_api.c| 249
small hash table
But IDR has a limitation that it uses int. TC handle uses u32.
To make sure there is no regression, we also changed IDR to use
unsigned long. All clients of IDR are changed to use new IDR API.
Chris Mi (3):
idr: Use unsigned long instead of int
net/sched: Change cls_flower to use
bottleneck.
Follow-up patch in this patchset addresses that.
Signed-off-by: Chris Mi
Signed-off-by: Jiri Pirko
---
net/sched/cls_flower.c | 55 +-
1 file changed, 23 insertions(+), 32 deletions(-)
diff --git a/net/sched/cls_flower.c b/net/sched