net: sched: rcu'ify cls_bpf
authorJohn Fastabend <[email protected]>
Sat, 13 Sep 2014 03:10:24 +0000 (20:10 -0700)
committerDavid S. Miller <[email protected]>
Sat, 13 Sep 2014 16:30:00 +0000 (12:30 -0400)
commitd355ab09594118b8dfb3d78dbda72fff634a934b
treefdc1f051d80db9c09511b0b497e16ec8f5357e3b
parent8b21e2307f2601fd3baaddb3e22f1a25e6719695
net: sched: rcu'ify cls_bpf

This patch makes the cls_bpf classifier RCU safe. The tcf_lock
was being used to protect a list of cls_bpf_prog now this list
is RCU safe and updates occur with rcu_replace.

Signed-off-by: John Fastabend <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sched/cls_bpf.c