OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][PACKET] Remove unneeded packet_socks_nr variable
Re: [PATCH][PACKET] Remove unneeded packet_socks_nr variable [message #22934 is a reply to message #22933] Wed, 07 November 2007 15:53 Go to previous messageGo to previous message
Arnaldo Carvalho de M is currently offline  Arnaldo Carvalho de M
Messages: 27
Registered: October 2007
Junior Member
Em Wed, Nov 07, 2007 at 01:50:04PM -0200, Arnaldo Carvalho de Melo escreveu:
> Em Wed, Nov 07, 2007 at 06:32:51PM +0300, Pavel Emelyanov escreveu:
> > This one is used only under ifdef PACKET_REFCNT_DEBUG in
> > printk and is not needed otherwise. So hide all this stuff
> > under the PACKET_REFCNT_DEBUG.
> > 
> > Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
> 
> Look at sk_refcnt_debug_inc, etc and you'll se a more standard way. I
> forgot to make this when making all protocol families use sk_prot, even
> if just partially :-)

As a bonus you'll get this information on /proc/net/protocols, removing
'-1' from PACKET column for "sockets".

- Arnaldo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: namespaces compatibility list
Next Topic: [PATCH] No need to inc/dec packet_socks_nr if PACKET_REFCNT_DEBUG is not set
Goto Forum:
  


Current Time: Wed Sep 11 23:42:48 GMT 2024

Total time taken to generate the page: 0.05369 seconds