[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1349111627.12401.714.camel@edumazet-glaptop>
Date: Mon, 01 Oct 2012 19:13:47 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: Stephen Hemminger <shemminger@...tta.com>,
Chris Wright <chrisw@...hat.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [RFC] gre: conform to RFC6040 ECN progogation
On Mon, 2012-10-01 at 17:49 +0100, Ben Hutchings wrote:
> I don't think rx_dropped is appropriate for counting invalid packets,
> but maybe actual practice is already different.
>
> As for whether packets counted in rx_dropped should also be counted in
> rx_packets/rx_bytes, I really don't know. The current comments on
> rtnl_link_stats (inherited from net_device_stats) are totally inadequate
> as a specification.
rx_dropped is used by core network stack, not the devices themselves.
So a packet is first accounted in rx_bytes/rx_packets by the driver,
and if net/core/dev.c drops it, rx_dropped is incremented as well.
--
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