[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0908271621260.28029@gentwo.org>
Date: Thu, 27 Aug 2009 16:23:24 -0400 (EDT)
From: Christoph Lameter <cl@...ux-foundation.org>
To: Sridhar Samudrala <sri@...ibm.com>
cc: David Stevens <dlstevens@...ibm.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <eric.dumazet@...il.com>, netdev@...r.kernel.org,
niv@...ux.vnet.ibm.com
Subject: Re: UDP multicast packet loss not reported if TX ring overrun?
ip_local_out returns NET_XMIT_DROP but the qdisc increment does not
trigger...
[ 219.098552] ip_local_out failed with 1
[ 219.098798] ip_local_out failed with 1
[ 219.099091] ip_local_out failed with 1
[ 219.099158] ip_local_out failed with 1
[ 219.099399] ip_local_out failed with 1
[ 219.099466] ip_local_out failed with 1
[ 219.099530] ip_local_out failed with 1
[ 219.099688] ip_local_out failed with 1
[ 219.099751] ip_local_out failed with 1
[ 219.099818] ip_local_out failed with 1
---
net/core/dev.c | 2 ++
net/ipv4/ip_output.c | 2 ++
2 files changed, 4 insertions(+)
Index: linux-2.6.31-rc7/net/core/dev.c
===================================================================
--- linux-2.6.31-rc7.orig/net/core/dev.c 2009-08-27 19:46:44.000000000 +0000
+++ linux-2.6.31-rc7/net/core/dev.c 2009-08-27 19:51:54.000000000 +0000
@@ -1865,6 +1865,8 @@ gso:
if (unlikely(test_bit(__QDISC_STATE_DEACTIVATED, &q->state))) {
rc = qdisc_drop(skb, q);
+ if (net_ratelimit())
+ printk(KERN_CRIT "Qdisc not active. NIC overrun\n");
} else {
rc = qdisc_enqueue_root(skb, q);
qdisc_run(q);
Index: linux-2.6.31-rc7/net/ipv4/ip_output.c
===================================================================
--- linux-2.6.31-rc7.orig/net/ipv4/ip_output.c 2009-08-27 19:48:17.000000000 +0000
+++ linux-2.6.31-rc7/net/ipv4/ip_output.c 2009-08-27 19:51:30.000000000 +0000
@@ -1301,6 +1301,8 @@ int ip_push_pending_frames(struct sock *
/* Netfilter gets whole the not fragmented skb. */
err = ip_local_out(skb);
if (err) {
+ if (net_ratelimit())
+ printk(KERN_CRIT "ip_local_out failed with %d\n", err);
if (err > 0)
err = net_xmit_errno(err);
if (err)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists