From: David Miller <davem@davemloft.net>
To: Tristram.Ha@Micrel.Com
Cc: ben@simtec.co.uk, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, x0066660@ti.com, s-jan@ti.com
Subject: Re: [PATCH 2.6.34-rc6] net: Improve ks8851 snl transmit performance
Date: Sun, 16 May 2010 00:26:07 -0700 (PDT) [thread overview]
Message-ID: <20100516.002607.84408834.davem@davemloft.net> (raw)
In-Reply-To: <14385191E87B904DBD836449AA30269D021A64@MORGANITE.micrel.com>
From: "Ha, Tristram" <Tristram.Ha@Micrel.Com>
Date: Thu, 6 May 2010 15:50:27 -0700
> From: Tristram Ha <Tristram.Ha@micrel.com>
>
> Under heavy transmission the driver will put 4 1514-byte packets in
> queue and stop the device transmit queue. Only the last packet
> triggers the transmit done interrupt and wakes up the device
> transmit queue. That means a bit of time is wasted when the CPU
> cannot send any more packet.
>
> The new implementation triggers the transmit interrupt when the
> transmit buffer left is less than 3 packets. The maximum transmit
> buffer size is 6144 bytes. This allows the device transmit queue to
> be restarted sooner so that CPU can send more packets.
>
> For TCP receiving it also has the benefit of not triggering any transmit interrupt at all.
>
> There is a driver option no_tx_opt so that the driver can revert to
> original implementation. This allows user to verify if the transmit
> performance actually improves.
>
> Signed-off-by: Tristram Ha <Tristram.Ha@micrel.com>
First, if you want to post patches you have to format them properly as
ascii text with no longer than 80 column lines in your commit message.
I really don't want to hear about your email client being a reason
you can't do this properly :-)
Second, I don't think you can use the skb->ip_summed for this hacked
state tracking you are using. The packet might be shared with other
entities, and therefore if you change the field it won't be correct
for them any more.
next prev parent reply other threads:[~2010-05-16 7:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 22:50 [PATCH 2.6.34-rc6] net: Improve ks8851 snl transmit performance Ha, Tristram
2010-05-07 5:02 ` Arce, Abraham
2010-05-13 5:38 ` Ha, Tristram
2010-05-13 23:39 ` Arce, Abraham
2010-05-14 23:22 ` Bill Fink
2010-05-16 7:26 ` David Miller [this message]
2010-05-24 17:28 ` Ha, Tristram
2010-05-24 17:44 ` 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=20100516.002607.84408834.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=Tristram.Ha@Micrel.Com \
--cc=ben@simtec.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=s-jan@ti.com \
--cc=x0066660@ti.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).