]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: rcu'ify cls_bpf
authorJohn Fastabend <john.fastabend@gmail.com>
Sat, 13 Sep 2014 03:10:24 +0000 (20:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 16:30:26 +0000 (12:30 -0400)
commit53a3d99620e6793ef802d45b190333701fbb383c
treefdc1f051d80db9c09511b0b497e16ec8f5357e3b
parenteaeff0854d9e85e1c66a54549681857241db3834
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 <john.r.fastabend@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_bpf.c