aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_cgroup.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2014-09-12 20:05:59 -0700
committerDavid S. Miller <davem@davemloft.net>2014-09-13 12:30:25 -0400
commit9888faefe1327909f3acf34d1feda87a368bb858 (patch)
treea65bd7a2dc103bf93d50a1234f0db37a749f608b /net/sched/cls_cgroup.c
parentnet: rcu-ify tcf_proto (diff)
downloadlinux-dev-9888faefe1327909f3acf34d1feda87a368bb858.tar.xz
linux-dev-9888faefe1327909f3acf34d1feda87a368bb858.zip
net: sched: cls_basic use RCU
Enable basic classifier for RCU. Dereferencing tp->root may look a bit strange here but it is needed by my accounting because it is allocated at init time and needs to be kfree'd at destroy time. However because it may be referenced in the classify() path we must wait an RCU grace period before free'ing it. We use kfree_rcu() and rcu_ APIs to enforce this. This pattern is used in all the classifiers. Also the hgenerator can be incremented without concern because it is always incremented under RTNL. 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>
Diffstat (limited to 'net/sched/cls_cgroup.c')
0 files changed, 0 insertions, 0 deletions