All of lore.kernel.org
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: dean gaudet <dean@arctic.org>
Cc: netdev@vger.kernel.org
Subject: Re: [patch] ifb double-counts packets
Date: Sat, 23 Dec 2006 08:29:52 -0500	[thread overview]
Message-ID: <1166880592.3763.3.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.4.64.0612230232410.29784@twinlark.arctic.org>

On Sat, 2006-23-12 at 02:35 -0800, dean gaudet wrote:
> it seems that ifb counts packets twice... both at xmit time and also in 
> the tasklet.  i'm not sure which one of the two to drop, but here's a 
> patch for dropping the counting at xmit time.

Good catch but not quite right. The correct way to do it is to increment
the rx_ counters instead of tx_ right at the top of  ifb_xmit().

Do you wanna resubmit your patch with these chmages and hopefully tested
for your situation?

cheers,
jamal



  reply	other threads:[~2006-12-23 13:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-23 10:35 [patch] ifb double-counts packets dean gaudet
2006-12-23 13:29 ` jamal [this message]
2006-12-23 21:58   ` dean gaudet
2006-12-26 18:38     ` jamal
2007-01-02  3:39     ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1166880592.3763.3.camel@localhost \
    --to=hadi@cyberus.ca \
    --cc=dean@arctic.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.