Re: [PATCH net-next] net: sched: act_skbedit: remove dependency on rtnl lock

2018-09-08 Thread David Miller
From: Vlad Buslov Date: Mon, 3 Sep 2018 10:07:15 +0300 > According to the new locking rule, we have to take tcf_lock for both > ->init() and ->dump(), as RTNL will be removed. > > Use tcf lock to protect skbedit action struct private data from concurrent > modification in init and dump. Use

[PATCH net-next] net: sched: act_skbedit: remove dependency on rtnl lock

2018-09-03 Thread Vlad Buslov
According to the new locking rule, we have to take tcf_lock for both ->init() and ->dump(), as RTNL will be removed. Use tcf lock to protect skbedit action struct private data from concurrent modification in init and dump. Use rcu swap operation to reassign params pointer under protection of tcf