From: Eric Dumazet <eric.dumazet@gmail.com>
To: Andy Fleming <afleming@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: ICMP echo reply fails
Date: Fri, 26 Mar 2010 23:46:15 +0100 [thread overview]
Message-ID: <1269643575.2256.19.camel@edumazet-laptop> (raw)
In-Reply-To: <1269641190.2256.1.camel@edumazet-laptop>
Le vendredi 26 mars 2010 à 23:06 +0100, Eric Dumazet a écrit :
> Le vendredi 26 mars 2010 à 16:48 -0500, Andy Fleming a écrit :
> > For various reasons, we have been running a stress test on one of our
> > boards. The test consists of initiating 2-3 flood pings from a
> > Windows box running Cygwin, plus one additional ping we use as a
> > "heartbeat". The ping flood is overwhelming our board (we're dropping
> > packets at a prodigious rate), but the board continues to respond for
> > a while. In addition, we are running a script on the board which
> > alternates bringing up and bringing down the interface every ten
> > seconds. After a highly variable amount of time, the board stops
> > replying to the pings. We suspected a driver issue, however, on
> > closer inspection, we are still able to send and receive packets (I
> > can ping *from* the board to the PC, and I can *telnet* from the PC to
> > the board). We tried pinging the board from another PC, and it also
> > failed. Essentially, ICMP echo requests are being ignored (A glance
> > at memory indicates that packets are arriving, but no packets are
> > being enqueued to the ethernet controller). We still have a lot more
> > debugging to do, but I was wondering if anyone had ever seen something
> > like this, or might be quicker to realize the obvious mistake we're
> > making.
> >
> > Thanks,
> > Andy Fleming
>
>
> kernel version ?
>
> NIC driver ?
>
> Are ICMP echo request received ? (grep Icmp /proc/net/snmp)
>
vi +1166 net/ipv4/icmp.c
/* Enough space for 2 64K ICMP packets, including
* sk_buff struct overhead.
*/
sk->sk_sndbuf =
(2 * ((64 * 1024) + sizeof(struct sk_buff)));
If many ICMP replies are lost/leaked by your driver when doing up/down
things, ICMP socket can consume all its sndbuf reserve and no more icmp
replies can be sent (a reboot is needed)
You could try changing sk->sk_sndbuf to 0x7FFFFFFF to see if the icmp
replies survive longer to your tests. If this is the case, then find the
leaks in your driver (tx path, maybe you forgot to free skbs in some
reset cases ?)
We should add a SNMP counter for failed ip_append() calls in
icmp_push_reply()...
next prev parent reply other threads:[~2010-03-26 22:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 21:48 ICMP echo reply fails Andy Fleming
2010-03-26 22:06 ` Eric Dumazet
2010-03-26 22:46 ` Eric Dumazet [this message]
2010-03-27 0:56 ` Andy Fleming
2010-04-02 7:09 ` [PATCH net-next-2.6] Eric Dumazet
2010-04-03 22:09 ` [PATCH net-next-2.6] icmp: Account for ICMP out errors David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1269643575.2256.19.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=afleming@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox