From: John Fastabend Date: Sat, 13 Sep 2014 03:05:59 +0000 (-0700) Subject: net: sched: cls_basic use RCU X-Git-Tag: fixes-against-v3.18-rc2~81^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9888faefe1327909f3acf34d1feda87a368bb858;p=pandora-kernel.git 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed