Re: [PATCH updated] net: add ability to clear per-interface network statistics via procfs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Cammarata <jimi@...>
Cc: <linux-kernel@...>
Date: Friday, May 16, 2008 - 12:20 pm

James Cammarata a écrit :
Hello James

1) Every call to get_proc_net() should be paired with a call to 
put_net(), or else you  leak  struct net.

2) I am not sure this is the right way to do this... Did you consider to 
extend ethtool instead ?

Here probably, you should add

    put_net(net);





--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH updated] net: add ability to clear per-interface ..., Eric Dumazet, (Fri May 16, 12:20 pm)
Re: [PATCH] net: add ability to clear stats via ethtool - e1..., Stephen Hemminger, (Fri May 30, 10:41 pm)