[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130925.144640.1661224048195310923.davem@davemloft.net>
Date: Wed, 25 Sep 2013 14:46:40 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: David.Laight@...LAB.COM
Cc: netdev@...r.kernel.org
Subject: Re: rx_dropped count for USB ethernet interfaces
From: "David Laight" <David.Laight@...LAB.COM>
Date: Wed, 25 Sep 2013 17:22:38 +0100
> However it looks as though Linux is also counting rx_dropped if the packet
> can't be delivered to a protocol (at the end of __netif_receive_skb).
This is expected and correct behavior.
> I suspect that DHCP is getting a copy of every packet (that can't
> help network performance?)
This is a long standing and well known issue.
The problem is that it used to be the case that before you put an IP
address on an interface, you couldn't even receive broadcast UDP
frames on a UDP socket.
So all DHCP implementations use AF_PACKET sockets in promiscuous mode
to deal with this.
These days you can actually receive broadcast frames on an interface
which hasn't had an IP assigned to it yet, due to some routing check
changes that were made a few years ago, but this support obviously not
present in older kernels.
Compound this with the pain that it would take to adjust all the
various DHCP implementations to not only support this, but have
the fallback code too.
--
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