netdev
[Top] [All Lists]

Re: netlink drops messages.

To: Gleb Natapov <gleb@xxxxxxxxxxx>
Subject: Re: netlink drops messages.
From: Andi Kleen <ak@xxxxxx>
Date: Wed, 17 Jan 2001 14:19:01 +0100
Cc: Andi Kleen <ak@xxxxxx>, kuznet@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20010117133932.B16180@nbase.co.il>; from gleb@nbase.co.il on Wed, Jan 17, 2001 at 12:40:39PM +0100
References: <20010116200600.C5122@nbase.co.il> <200101161828.VAA31502@ms2.inr.ac.ru> <20010117101720.F5122@nbase.co.il> <20010117120652.A1830@fred.local> <20010117133932.B16180@nbase.co.il>
Sender: owner-netdev@xxxxxxxxxxx
On Wed, Jan 17, 2001 at 12:40:39PM +0100, Gleb Natapov wrote:
> On Wed, Jan 17, 2001 at 12:06:52PM +0100, Andi Kleen wrote:
> > On Wed, Jan 17, 2001 at 09:19:45AM +0100, Gleb Natapov wrote:
> > > On Tue, Jan 16, 2001 at 09:28:34PM +0300, kuznet@xxxxxxxxxxxxx wrote:
> > > > Hello!
> > > > 
> > > > > Resync should be an exception and not the rule IMO.
> > > > 
> > > > If in your system simultaneous UP of 100 interfaces is not an 
> > > > exception. 8)
> > > Forget about interfaces :). Suppose I have BGP router with 100.000 
> > > prefixes on
> > > one interface. When interface goes UP my router daemon adds all this 
> > > prefixes
> > > to the kernel. This will generate burst of netlink messages right?
> > 
> > Netlink sendmsg does flow control based on the buffer.
> >
> 
> But if there is another process listening to netlink and it wants to know 
> about routing
> table changes. Will kernel stop the process that adds routes to the routing 
> table until
> reading process will empty the socket? I hope not.

It does, unless you made the socket non blocking, in which case you would
get an EAGAIN and could wait using poll(2) for new write space. 
[that's no different from how normal non-blocking networking works] 


-Andi
-- 
This is like TV. I don't like TV.

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