From: "Michael Chan" <mchan@broadcom.com>
To: "David S.Miller" <davem@davemloft.net>
Cc: akepner@sgi.com, netdev@oss.sgi.com
Subject: Re: Perf data with recent tg3 patches
Date: Fri, 13 May 2005 17:39:19 -0700 [thread overview]
Message-ID: <1116031159.6214.8.camel@rh4> (raw)
In-Reply-To: <20050513.175013.00786860.davem@davemloft.net>
On Fri, 2005-05-13 at 17:50 -0700, David S.Miller wrote:
> Perhaps we can make the logic in tg3_poll() smarter about
> this. Something like:
>
> tg3_process_phy_events();
> tg3_tx();
> tg3_rx();
>
> if (tp->tg3_flags & TG3_FLAG_TAGGED_STATUS)
> tp->last_tag = sblk->status_tag;
> rmb();
> done = !tg3_has_work(tp);
> if (done) {
> spin_lock_irqsave(&tp->lock, flags);
> __netif_rx_complete(netdev);
> tg3_restart_ints(tp);
> spin_unlock_irqrestore(&tp->lock, flags);
> }
> return (done ? 0 : 1);
>
> Basically, move the last_tag sample to after we do the
> work, then recheck the RX/TX producer/consumer indexes.
>
I like this. I think it will work well.
next prev parent reply other threads:[~2005-05-14 0:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 2:49 Perf data with recent tg3 patches Arthur Kepner
[not found] ` <20050512.211935.67881321.davem@davemloft.net>
2005-05-13 23:57 ` Arthur Kepner
2005-05-14 0:50 ` David S. Miller
2005-05-14 0:39 ` Michael Chan [this message]
2005-05-14 5:20 ` David S. Miller
2005-05-20 21:52 ` Arthur Kepner
2005-05-20 22:33 ` David S. Miller
2005-05-20 22:52 ` Rick Jones
2005-05-20 22:54 ` Arthur Kepner
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=1116031159.6214.8.camel@rh4 \
--to=mchan@broadcom.com \
--cc=akepner@sgi.com \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.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).