Re: [mpls-linux-general] i want to make sure some parameters in /proc/net/mpls*
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2002-10-21 16:33:46
|
On Mon, Oct 21, 2002 at 07:05:50PM +0800, Folke Aeon wrote: > hi, J. >=20 > thanks for your answer. but i don;t quite > understand the meaning of "Reference count" > would you please tell me how can i find > more detailed information about it? >=20 > thanks for your precious time :) Pointers to MPLS structure are held by other kernel entities that may be deleted at differnt times then the MPLS structure itself. A common wa= y to handle this is to reference count the structure who's pointer is being held by other entities. So when a kernel entity needs the pointer to the MPLS structure, the refe= rence count is incremented. When the kernel entity no longer need the pointer = to the MPLS structure the reference count is decremented. When the reference co= unt reaches 0, the MPLS structure is deleted. The only reason the reference counters are displayed in the /proc/ output is to help debug cases where MPLS structures are not being cleaned up. >=20 > folke. >=20 >=20 >=20 >=20 > >From: "James R. Leu" <jl...@mi...> > >Reply-To: jl...@mi... > >To: Folke Aeon <aeo...@ho...> > >CC: Subject: Re: [mpls-linux-general] i want to make sure some paramet= ers=20 > >in /proc/net/mpls* > >Date: Sun, 20 Oct 2002 18:29:28 -0500 > > > >On Sat, Oct 19, 2002 at 03:50:30PM +0800, Folke Aeon wrote: > > > hi, all > > > > > > will anyone tell me the meaning of the following parameters in > > > /proc/net/mpls* :? > > > > > > [root@localhost net]# cat mpls_in > > > 0x40004000 4/256/0 gen 16 0 1 POP PEEK > > > + + + > > > | | | > > > | | +------what does this > > > | | mean then? > > > | | > > > | label space? > > > | > > > what does this zero mean? packets > > > dropped? or bytest dropped? > > > >Dropped packets. > > > >The '1' is the reference count. >=20 >=20 > _________________________________________________________________ > Get faster connections=A0-- switch to=A0MSN Internet Access!=20 > http://resourcecenter.msn.com/access/plans/default.asp >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu |