netdev
[Top] [All Lists]

Re: udp weirdness

To: Matti Aarnio <matti.aarnio@xxxxxxxxxxx>@shell.cyberus.ca@xxxxxxxxxxxxxxxx
Subject: Re: udp weirdness
From: jamal <hadi@xxxxxxxxxx>
Date: Sun, 29 Sep 2002 10:47:48 -0400 (EDT)
Cc: Eric Lemoine <Eric.Lemoine@xxxxxxxxxxx>, <netdev@xxxxxxxxxxx>
In-reply-to: <20020927150412.GI30392@mea-ext.zmailer.org>
Sender: netdev-bounce@xxxxxxxxxxx
Ok, understood. Actually we already seem to have enobufs being returned.

Eric,
Does the attached patch fix it? Not tested or even compiled.
Someone going to change the manpages?

cheers,
jamal

On Fri, 27 Sep 2002, Matti Aarnio wrote:

> On Fri, Sep 27, 2002 at 10:53:00AM -0400, jamal wrote:
> > On Fri, 27 Sep 2002, Eric Lemoine wrote:
> >
> > > I figured out that packets can be dropped in pfifo_fast_enqueue()
> > > [the default qdisc's enqueue func], even though the driver/kernel
> > > flow control has triggered.
> ...
> > What trigger do you suggest to wake up the process again?
> > A better idea maybe to return something to the socket so it can
> > manage things instead -- not sure what to return though that wouldnt
> > break some standard;
>
>
> "man sendto" error return codes:
>
>        ENOBUFS
>               The  output queue for a network interface was full.
>               This generally indicates  that  the  interface  has
>               stopped  sending,  but  may  be caused by transient
>               congestion.  (This cannot occur in  Linux,  packets
>               are just silently dropped when a device queue over­
>               flows.)
>
> > cheers,
> > jamal
>
> /Matti Aarnio
>

Attachment: enobuf.patch
Description: Text document

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