Re: [mpls-linux-general] Dst_entry in MPLS implementation
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-02-18 14:44:14
|
On Mon, Feb 18, 2002 at 10:17:56AM +0530, jagdish Garg wrote: > Hi > I have seen the linux code. In the code ref_count is use for keeping the > reference, but not the _use field. In Mpls 1.0 code to delete a > label(__mpls_del_out_label) and dst_entry, simply release > st_entry( dst_release(moi->moi_dst) is called. The function dst_release is > decrementing the ref_count not the _use field. Then I'm not sure what _use if for, it obvioulsy doesn't have much of an impact on mpls-linux. You have the kernel code figure it out yourself. > Please let me know how to get the latest CVS code. http://sourceforge.net/cvs/?group_id=15443 > > Regards > Jagdish > > ----- Original Message ----- > From: James R. Leu <jl...@mi...> > To: jagdish Garg <jag...@ie...> > Cc: <mpl...@li...> > Sent: Friday, February 15, 2002 9:08 PM > Subject: Re: [mpls-linux-general] Dst_entry in MPLS implementation > > > > > > From: "James R. Leu" <jl...@mi...> on 02/15/2002 09:38 AM CST > > > > Please respond to jl...@mi... > > > > To: jagdish Garg <jag...@ie...> > > cc: mpl...@li... > > Subject: Re: [mpls-linux-general] Dst_entry in MPLS implementation > > > > > > In mpls-linux 1.0 dst_entry is used ineffeciently. Take a look at > > mpls-linux 1.1xx (get it from CVS) to see how it will be used in the > > future. > > > > As for you question. Since MPLS created the dst_entry and holds a > > reference > > (and a reference count) for the dst_entry, it will not be deleted until > > MPLS releases it. The neighbor entry the the dst_entry points to can > > change > > over time, but the neighbor entry deals with this. > > > > _use is the reference count. > > > > Jim > > > > On Fri, Feb 15, 2002 at 02:53:07PM +0530, jagdish Garg wrote: > > > Hi > > > In the mpls code a new dst entry is created for each new nhlfe add > > request. > > > The pointer of which is kept in moi. The dst_entry is further use > depends > > on > > > the mpls LSP configuration. I have one question, suppose dst_entry is > > not > > > used long time and it will go to the garbage list. After that if moi is > > used > > > then what will happen? > > > > > > Further I will be grateful if one can tell me the significance of _use > > field > > > of dst_entry structure. > > > > > > > > > > > > Thanks in advance > > > Jagdish > > > > > > > > > > > > > > > _______________________________________________ > > > mpls-linux-general mailing list > > > mpl...@li... > > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > > > -- > > James R. Leu > > -- James R. Leu |