commit | 1d8134fea2eb460698a281f91c03c400f7e546ce | [log] [tgz] |
---|---|---|
author | Cong Wang <xiyou.wangcong@gmail.com> | Mon Sep 25 10:13:50 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 28 09:43:41 2017 -0700 |
tree | 5bacbb640e20cbfefb00402959cf68125b42d3ac | |
parent | 76cf546c2802f6e25113ba481d7e85d0298768c6 [diff] |
net_sched: use idr to allocate basic filter handles Instead of calling basic_get() in a loop to find a unused handle, just switch to idr API to allocate new handles. Cc: Chris Mi <chrism@mellanox.com> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>