Re: UDP path MTU discovery

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rick Jones
Date: Friday, March 26, 2010 - 10:48 am

David Miller wrote:

A possibly pedantic question, but only when it does I/O, or also when/if it is 
in poll/select?

What distinguishes this EMSGSIZE from a run-of-the-mill EMSGSIZE error such as 
one gets from trying to send a datagram larger than SO_SNDBUF?

That is something that happens all the time in netperf when people forget a -m 
option on UDP_STREAM tests :)  Netperf gets the error and exits.  But supposing 
I wanted to make netperf more sophisticated in that regard - what sort of things 
must it do?  Call getsockopt(SO_SNDBUF) to check the size of the failed send 
against SO_SNDBUF and only then decide if it is an error on this send or an ICMP 
Datagram Too Big arrived indication from a previous send?  I know that netperf 
already has this information, so using it as the example is a bit stretched, but 
lets presume for the moment that netperf just has a socket handed to it from 
"somewhere."

rick jones
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UDP path MTU discovery, Glen Turner, (Thu Mar 25, 5:02 pm)
Re: UDP path MTU discovery, Rick Jones, (Thu Mar 25, 5:53 pm)
Re: UDP path MTU discovery, David Miller, (Thu Mar 25, 8:24 pm)
Re: UDP path MTU discovery, David Miller, (Thu Mar 25, 8:26 pm)
Re: UDP path MTU discovery, Rick Jones, (Fri Mar 26, 10:48 am)
Re: UDP path MTU discovery, Andi Kleen, (Sun Mar 28, 1:41 am)
Re: UDP path MTU discovery, Andi Kleen, (Sun Mar 28, 1:50 am)
Re: UDP path MTU discovery, Rick Jones, (Mon Mar 29, 10:01 am)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 1:14 pm)
Re: UDP path MTU discovery, Rick Jones, (Mon Mar 29, 1:25 pm)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Mon Mar 29, 1:50 pm)
Re: UDP path MTU discovery, Rick Jones, (Mon Mar 29, 2:01 pm)
Re: UDP path MTU discovery, Eric Dumazet, (Mon Mar 29, 2:29 pm)
RE: UDP path MTU discovery, Templin, Fred L, (Mon Mar 29, 4:38 pm)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 10:20 pm)
Re: UDP path MTU discovery, Eric Dumazet, (Mon Mar 29, 11:06 pm)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Mon Mar 29, 11:16 pm)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 11:16 pm)
Re: UDP path MTU discovery II, Andi Kleen, (Mon Mar 29, 11:17 pm)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 11:19 pm)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Tue Mar 30, 1:20 am)
Re: UDP path MTU discovery, Andi Kleen, (Tue Mar 30, 7:12 am)
RE: UDP path MTU discovery, Templin, Fred L, (Tue Mar 30, 8:58 am)
Re: UDP path MTU discovery, Andi Kleen, (Tue Mar 30, 9:06 am)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Tue Mar 30, 3:04 pm)
Re: UDP path MTU discovery, Glen Turner, (Wed Mar 31, 4:42 pm)
Re: UDP path MTU discovery, Glen Turner, (Wed Mar 31, 4:43 pm)
Re: UDP path MTU discovery, Hagen Paul Pfeifer, (Wed Mar 31, 4:51 pm)
Re: UDP path MTU discovery, Glen Turner, (Wed Mar 31, 4:57 pm)
Re: UDP path MTU discovery, Rick Jones, (Wed Mar 31, 5:06 pm)
Re: UDP path MTU discovery, Andi Kleen, (Wed Mar 31, 5:55 pm)
Re: UDP path MTU discovery, Andi Kleen, (Wed Mar 31, 5:57 pm)
Re: UDP path MTU discovery, Glen Turner, (Thu Apr 1, 10:41 pm)
Re: UDP path MTU discovery, Andi Kleen, (Sun Apr 4, 3:25 am)