Cc: Ben Hutchings <bhutchings@...>, <e1000-devel@...>, <netdev@...>, Allan, Bruce W <bruce.w.allan@...>, Ronciak, John <john.ronciak@...>, Kirsher, Jeffrey T <jeffrey.t.kirsher@...>
On Tue, Aug 05, 2008 at 09:43:19AM -0700, Brandeburg, Jesse wrote:
Makes sense to me.
I didn't see those, I'll need to look again. Still though, knowing this still
leaves us with the possibility that multicast packets > total_rx_packets (where
the former is counted in hw, while the latter is counted in sw).
Agreed, theres no great solution here.
I can't really answer how big a problem this is. What I can tell you is that it
was reported to me origionally as a net-snmp issue. net-snmp was getting some
very odd counter values because it was computing unicast rx frames from a given
interface as unicast = total - multicast, as read from /proc/net/dev. The
assumption here being that total >= multicast in that file. Given the e1000
driver as it currently stands, thats not a safe assumption for net-snmp, nor any
other application using /proc/net/dev to make. Clearly an obvious solution here
is for applications to sanity check this input data, but that just begs the
question, what then? If total < [some reasonable component of total], what do
we do? I think making sure that we put up sane counters is a resonable
solution, but I'm certainly open to other solutions, or arguments for fixing
this elsewhere.
Regards
Neil
--
/****************************************************
* Neil Horman <nhorman@tuxdriver.com>
* Software Engineer, Red Hat
****************************************************/
--
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