Re: [tipc-discussion] [PATCH net-next v3 1/2] tipc: make bearer packet filtering generic

2016-07-18 Thread Xue, Ying
Hi Jon, Before the change, dev->tipc_ptr is set/reset through tipc_enable_l2_media() and tipc_disable_l2_media() which are called by tipc_enable_bearer() and bearer_disable() respectively. Especially for bearer_disable(), it might be invoked by the four functions tipc_enable_bearer(),

Re: [tipc-discussion] [PATCH net-next v3 1/2] tipc: make bearer packet filtering generic

2016-07-18 Thread Jon Maloy
On 07/18/2016 05:41 AM, Xue, Ying wrote: > Hi Jon, > > Although I know your purpose is right, unfortunately we cannot reset bearer > like what we are doing in the patch. As you know, dev->tipc_ptr is protected > by RTNL on write side and protected by RCU on read side. Regarding RCU > locking