netdev
[Top] [All Lists]

Re: PATCH Re: udp weirdness

To: cfriesen@xxxxxxxxxxxxxxxxxx (Chris Friesen)
Subject: Re: PATCH Re: udp weirdness
From: kuznet@xxxxxxxxxxxxx
Date: Tue, 1 Oct 2002 18:40:12 +0400 (MSD)
Cc: hadi@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <3D99B07B.7050901@xxxxxxxxxxxxxxxxxx> from "Chris Friesen" at Oct 1, 2 10:26:03 am
Sender: netdev-bounce@xxxxxxxxxxx
Hello!

> If I'm looping on a sendto() with a blocking socket, I would expect the 
> syscall to block until the packet has been handed off to the device 
> driver.  This may mean blocking until local congestion backs off.

Feel free to implement. :-)


> The way we do it now means that we can chew up massive amounts of cpu 
> creating packets in userspace and throwing them away in the kernel, with 
> no way of knowing from userspace that it is happening.

What? If your applications is enough clever to handle ENOBUFS right,
set IP_RECVERR and live in peace.

Alexey


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