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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Wednesday, August 26, 2009 - 7:22 am

Christoph Lameter a écrit :

I think it's already done in udp_sendmsg()

Code starting at line 765 in net/ipv4/udp.c

        /*
         * ENOBUFS = no kernel mem, SOCK_NOSPACE = no sndbuf space.  Reporting
         * ENOBUFS might not be good (it's not tunable per se), but otherwise
         * we don't have a good statistic (IpOutDiscards but it can be too many
         * things).  We could add another new stat but at least for now that
         * seems like overkill.
         */
        if (err == -ENOBUFS || test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) {
                UDP_INC_STATS_USER(sock_net(sk),
                                UDP_MIB_SNDBUFERRORS, is_udplite);
        }



--
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:
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Tue Aug 25, 12:15 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Tue Aug 25, 3:35 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Wed Aug 26, 7:08 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Eric Dumazet, (Wed Aug 26, 7:22 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Wed Aug 26, 8:27 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Wed Aug 26, 9:29 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Wed Aug 26, 10:50 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Wed Aug 26, 12:09 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Sridhar Samudrala, (Wed Aug 26, 3:11 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Thu Aug 27, 8:40 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Thu Aug 27, 1:23 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Fri Aug 28, 6:53 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Fri Aug 28, 9:15 am)
[PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Fri Aug 28, 10:26 am)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Fri Aug 28, 12:53 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Fri Aug 28, 1:00 pm)
Re: UDP multicast packet loss not reported if TX ring overrun?, Christoph Lameter, (Fri Aug 28, 1:09 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, David Miller, (Fri Aug 28, 11:38 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Mon Aug 31, 5:09 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, David Miller, (Tue Sep 1, 6:41 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Wed Sep 2, 7:43 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Wed Sep 2, 9:05 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Sridhar Samudrala, (Wed Sep 2, 9:11 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Wed Sep 2, 9:20 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Christoph Lameter, (Wed Sep 2, 11:22 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Christoph Lameter, (Wed Sep 2, 12:37 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Wed Sep 2, 3:26 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, David Miller, (Wed Sep 2, 6:05 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, David Miller, (Wed Sep 2, 6:09 pm)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Eric Dumazet, (Thu Sep 3, 7:12 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Christoph Lameter, (Thu Sep 3, 10:57 am)
Re: [PATCH net-next-2.6] ip: Report qdisc packet drops, Christoph Lameter, (Thu Sep 3, 11:35 am)