[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121001142135.6580b3eb@nehalam.linuxnetplumber.net>
Date: Mon, 1 Oct 2012 14:21:35 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Ben Hutchings <bhutchings@...arflare.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, 01 Oct 2012 19:13:47 +0200
Eric Dumazet <eric.dumazet@...il.com> wrote:
> 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.
The tunnel drivers are consistent in putting any dropped packet because
of protocol problem into a rx_XXX_error value and incrementing rx_errors.
I just made it treat ECN bit breakage like all the other protocol errors.
--
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