netdev
[Top] [All Lists]

Re: [NET]: Avoid useless iterating in netlink dump functions

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: [NET]: Avoid useless iterating in netlink dump functions
From: jamal <hadi@xxxxxxxxxx>
Date: Fri, 06 May 2005 17:17:02 -0400
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, Maillist netdev <netdev@xxxxxxxxxxx>
In-reply-to: <427BDDD4.1000808@trash.net>
Organization: unknown
References: <427B8FC3.4000305@trash.net> <1115413473.13922.38.camel@localhost.localdomain> <427BDDD4.1000808@trash.net>
Reply-to: hadi@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 2005-06-05 at 23:12 +0200, Patrick McHardy wrote:
> jamal wrote:
> > Looks good - you may also wanna treat tcf_dump_walker() and
> > xfrm_dump_sa() the same way then. 
> > 
> 
> action dumping is on my list for more treatment than this :)

Well, that does sound scary ;-> What do you have in mind.
Recall, there are two paths to dumping actions - unlike any other thing
in the kernel.

> xfrm_dump_sa()/xfrm_state_walk() could be changed to skip
> smarter, but that is a different kind of change.
> 

I noticed the policy too is of the the same way. Those are actually a
little more trickier than they appear.

cheers,
jamal



<Prev in Thread] Current Thread [Next in Thread>