Re: UDP multicast packet loss not reported if TX ring overrun?
From: Eric Dumazet <hidden>
Date: 2009-08-25 06:46:17
Eric Dumazet a écrit :
Christoph Lameter a écrit :quoted
On Mon, 17 Aug 2009, Sridhar Samudrala wrote:quoted
On Mon, 2009-08-17 at 18:13 -0400, Christoph Lameter wrote:quoted
On Mon, 17 Aug 2009, Sridhar Samudrala wrote:quoted
What about ethtool -S ? Does it report any errors?Neither. This is is a broadcom bnx2 NIC.Are you sure the packets are dropped at the sender?Yes I am sending 400k messages from the app and the receiver only gets 341k @300 byte (which is the line rate). There is no way that the 400k get over the line. Also if I reduce SO_SNDBUF then both receiver and sender get down to 341k. I added the output of ethtool -S at the end. The mcast tool can be had from http://gentwo.org/ll or from my directory on www.kernel.org.# gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.4.1/configure --enable-languages=c,c++ --prefix=/usr Thread model: posix gcc version 4.4.1 (GCC) # pwd /opt/src/lldiag-0.14 # make gcc -Wall -omcast mcast.c -lrt -lm mcast.c: In function ‘set_ip’: mcast.c:121: warning: implicit declaration of function ‘htons’ mcast.c: In function ‘build_pattern_array’: mcast.c:168: warning: implicit declaration of function ‘htonl’ /tmp/cc4sYCDr.o: In function `lock': mcast.c:(.text+0xcad): undefined reference to `__sync_fetch_and_add_4' collect2: ld returned 1 exit status make: *** [mcast] Error 1 I have no idea where is defined sync_fetch_and_add
Doh... Dont bother, I had to add "-march=i686" to CFLAGS to get "xadd" support