Re: UDP multicast packet loss not reported if TX ring overrun?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sridhar Samudrala
Date: Monday, August 24, 2009 - 3:36 pm

On Tue, 2009-08-25 at 00:02 +0200, Eric Dumazet wrote:

Christoph,

So are you hitting this case with your workload and does this account for all the
packet losses you are seeing? 

If we are dropping the packet and returing NET_XMIT_DROP, should
we also increment qdisc drop stats (sch->qstats.drops)?

In dev_queue_xmit(), we have

        if (q->enqueue) {
                spinlock_t *root_lock = qdisc_lock(q);

                spin_lock(root_lock);

                if (unlikely(test_bit(__QDISC_STATE_DEACTIVATED, &q->state))) {
                        kfree_skb(skb);
                        rc = NET_XMIT_DROP;
                } else {
                        rc = qdisc_enqueue_root(skb, q);
                        qdisc_run(q);
                }
                spin_unlock(root_lock);

                goto out;
        }

Here, if QDISC_STATE_DEACTIVATED is true, the skb is dropped and NET_XMIT_DROP
is returned, but not accounted in qdisc drop stats.
However it is incremented when NET_XMIT_DROP is returned via qdisc_drop().

If we count these drops as qdisc drops, should we also count them as IP OUTDISCARDS?

Thanks
Sridhar



--
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 multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 17, 1:01 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 17, 1:46 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Mon Aug 17, 2:50 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 17, 3:13 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Mon Aug 17, 3:43 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 17, 3:52 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 17, 3:57 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Mon Aug 17, 5:12 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 17, 5:25 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Mon Aug 24, 10:40 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Mon Aug 24, 3:36 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 6:45 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 6:46 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 6:48 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 7:00 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 8:35 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 9:11 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 9:36 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 10:01 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 10:44 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 10:53 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Tue Aug 25, 11:38 am)