Re: [PATCH] catch up device stats when multicast > total frames

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ben Hutchings <bhutchings@...>
Cc: <netdev@...>, <e1000-devel@...>, <jeffrey.t.kirsher@...>, <jesse.brandeburg@...>, <bruce.w.allan@...>, <john.ronciak@...>
Date: Tuesday, August 5, 2008 - 9:16 am

On Tue, Aug 05, 2008 at 01:15:29PM +0100, Ben Hutchings wrote:

It does, however,  for whatever reason the drriver relies on a software
computed total packets counter rather than the hardware based on (possibly for
the same reason, in that it counts frames the driver never actually sees).  I
asked John R. in the origional bug report why e1000 might do this, and while
neither of us were sure, that seemed to be the consensus.

I agree, but as it stands currently the numbers are obviously wrong, and I don't
see a way to make them undenyably correct.  We could use the hardware counter
instead, but then we would be counting frames that various IPMI endpoints might
consume, so that wouldn't be quite right.  We could fix up the sofware counter
based on the hardware counter, but that doesn't seem right either.  We could
inspect the packet in the driver, and do a software multicast frame counter, but
that would be a big performance hit.  So there is no great fix to this problem.
This at least makes the stats sane, doesn't impact performance, and doesn't
affect stats for which IPMI reception isn't an issue.

John, you stopped commenting in the origional bug report, do you have any
further thoughts on this as a fix to the issue at hand?

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] catch up device stats when multicast > total ..., Neil Horman, (Tue Aug 5, 9:16 am)
RE: [E1000-devel] [PATCH] catch up device stats when multica..., Brandeburg, Jesse, (Tue Aug 5, 12:43 pm)