]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net_sched: use idr to allocate bpf filter handles
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 25 Sep 2017 17:13:49 +0000 (10:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 16:43:41 +0000 (09:43 -0700)
commit76cf546c2802f6e25113ba481d7e85d0298768c6
treeda7851495d338857ab07a6b03d980ed44c5db57e
parent8f1975e31d8ed0c021a1993a4d9123dd39c740ea
net_sched: use idr to allocate bpf filter handles

Instead of calling cls_bpf_get() in a loop to find
a unused handle, just switch to idr API to allocate
new handles.

Cc: Daniel Borkmann <daniel@iogearbox.net>
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>
net/sched/cls_bpf.c