Re: [Patch net-next] net_sched: remove tc class reference counting

2017-08-24 Thread Cong Wang
On Thu, Aug 24, 2017 at 12:32 PM, David Miller wrote: > From: Cong Wang > Date: Tue, 22 Aug 2017 21:38:10 -0700 > >> For TC classes, their ->get() and ->put() are always paired, and the >> reference counting is completely useless, because: >> >> 1) For class modification and dumping paths, we alr

Re: [Patch net-next] net_sched: remove tc class reference counting

2017-08-24 Thread David Miller
From: Cong Wang Date: Tue, 22 Aug 2017 21:38:10 -0700 > For TC classes, their ->get() and ->put() are always paired, and the > reference counting is completely useless, because: > > 1) For class modification and dumping paths, we already hold RTNL lock, >so all of these ->get(),->change(),->

[Patch net-next] net_sched: remove tc class reference counting

2017-08-22 Thread Cong Wang
For TC classes, their ->get() and ->put() are always paired, and the reference counting is completely useless, because: 1) For class modification and dumping paths, we already hold RTNL lock, so all of these ->get(),->change(),->put() are atomic. 2) For filter bindiing/unbinding, we use other