Re: want opinions on possible glitch in 2.4 network error reporting

From: Ben Greear (greearb@candelatech.com)
Date: Wed Feb 06 2002 - 23:56:17 EST


David S. Miller wrote:

> From: Ben Greear <greearb@candelatech.com>
> Date: Wed, 06 Feb 2002 21:21:09 -0700
>
> Alan Cox wrote:
>
> > UDP is not flow controlled.
>
> If it makes it through sendto, where can it be dropped before it
> hits the wire?
>
> If the packet ends up being fragmented on the way out and the socket
> cannot take on the allocation against it's buffer space.

In the fragmentation case (at least over 1500 MTU ethernet), the
headers are a relatively small portion of the total PDU, right?
So, if we reserved 10-15% (or whatever it works out to) that should
make it so we never drop the packet due to fragmentation, right? I can't see any reason
not to reserve this space, because sending a little later is definately
better than going through the work to send it sooner but then having to
drop it down in the local kernel. We may only want to reserve the buffers
when they are fairly large (ie not you your very small and slow embedded devices
where memory is very precious).

-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:57 EST