netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: linux@horizon.com
To: davem@davemloft.net, romieu@fr.zoreil.com
Cc: akpm@linux-foundation.org, jeff@garzik.org, linux@horizon.com,
	netdev@vger.kernel.org
Subject: Re: [PATCH 0/4] Pull request for 'ipg-fixes' branch
Date: 10 Jan 2008 20:58:51 -0500	[thread overview]
Message-ID: <20080111015851.25008.qmail@science.horizon.com> (raw)
In-Reply-To: <20080110233508.GA13315@electric-eye.fr.zoreil.com>

Thank you very much, this appears to work.

> The driver is still a POMS but it seems better now.

I notice that the vendor-supplied driver doesn't have these bugs.
Now, it does have a bug in that it doesn't have an "is this
interrupt for me?" test at all (and always returns "I handled it"),
but the bypass and its locking screwups are a later addition.

The same with the sp->rx_current bugs.  The original loop which used
rx_current as the loop iteration variable wasn't great style, precisely
because it hides the interaction that someone's "optimization" broke,
but I don't want to blame the vendor for things they didn't do.

Would you be interested in some cleanup patches?  In particular, I think I
can get rid of tx->lock entirely, or at least take it off the fast path.
All it's protecting is the write to sp->tx_current, and a few judicious
memory barriers can deal with that.


(Oh, another BUG: the sp->ResetCurrentTFD logic in hard_start_xmit is
just plain broken.  It writes the new data to entry 0, then increments
sp->tx_current just like usual.  THAT isn't in the vendor driver that
I see, either.)

  parent reply	other threads:[~2008-01-11  1:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-10 23:35 [PATCH 0/4] Pull request for 'ipg-fixes' branch Francois Romieu
2008-01-10 23:35 ` [PATCH 1/4] ipg: balance locking in irq handler Francois Romieu
2008-01-10 23:37 ` [PATCH 2/4] ipg: plug Tx completion leak Francois Romieu
2008-01-10 23:37 ` [PATCH 3/4] ipg: fix queue stop condition in the xmit handler Francois Romieu
2008-01-10 23:38 ` [PATCH 4/4] ipg: fix Tx completion irq request Francois Romieu
2008-01-11  1:58 ` linux [this message]
2008-01-11 17:22   ` [PATCH 0/4] Pull request for 'ipg-fixes' branch Francois Romieu
2008-01-12 22:48 ` Jeff Garzik
2008-01-13 15:50   ` Francois Romieu
2008-01-13 22:34     ` Francois Romieu

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=20080111015851.25008.qmail@science.horizon.com \
    --to=linux@horizon.com \
    --cc=akpm@linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=jeff@garzik.org \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).