diff options
author | Chris Mi <chrism@mellanox.com> | 2017-08-30 02:31:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-30 14:38:51 -0700 |
commit | 65a206c01e8e7ffe971477a36419422099216eff (patch) | |
tree | ea72c10c42996dc7d070968d45d86880fde71fac /net/sched/cls_flower.c | |
parent | c15ab236d69dd6dad24541400f460c47853803f8 (diff) | |
download | linux-65a206c01e8e7ffe971477a36419422099216eff.tar.bz2 |
net/sched: Change act_api and act_xxx modules to use IDR
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 <chrism@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_flower.c')
0 files changed, 0 insertions, 0 deletions