From: "David S. Miller" <davem@redhat.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: kaber@trash.net, yoshfuji@linux-ipv6.org, netdev@oss.sgi.com
Subject: Re: [PATCH 2.6]: Fix suboptimal fragment sizing for last fragment
Date: Thu, 2 Sep 2004 15:08:30 -0700 [thread overview]
Message-ID: <20040902150830.6585cfc5.davem@redhat.com> (raw)
In-Reply-To: <20040902220343.GA3250@gondor.apana.org.au>
On Fri, 3 Sep 2004 08:03:44 +1000
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> That could also tie into another optimisation. But it's
> an ugly one :) The sk->csum values are added up at the end of
> the processing so when we move bytes to and fro the total csum
> value stays the same even if the fragment csum values change.
>
> Therefore we can get rid of the csum adjustments except for the
> parity bit in the getfrag call.
>
> Is this an acceptable optimisation to you guys?
I have no problems with this.
> Another thing we can do is to not always fill up the frags in the middle
> and then move bytes off them. As it is if you do a send that spans
> multiple packets each fragment will be filled up to the full and then
> chopped off when the next one is started.
Please elaborate.
> And to finish it off, here is a really trivial patch to shave off 27
> bytes from the source code :) It does nothing else, well unless your
> compiler decides to compile csum_block_sub out-of-line.
Applied :-)
next prev parent reply other threads:[~2004-09-02 22:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 18:36 [PATCH 2.6]: Fix suboptimal fragment sizing for last fragment Patrick McHardy
2004-09-02 19:48 ` YOSHIFUJI Hideaki / 吉藤英明
2004-09-02 21:44 ` David S. Miller
2004-09-02 22:03 ` Herbert Xu
2004-09-02 22:08 ` David S. Miller [this message]
2004-09-03 1:40 ` YOSHIFUJI Hideaki / 吉藤英明
2004-09-07 20:35 ` David S. Miller
2004-09-07 23:15 ` Herbert Xu
2004-09-07 23:26 ` YOSHIFUJI Hideaki / 吉藤英明
2004-09-08 3:21 ` Herbert Xu
2004-09-08 20:38 ` David S. 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=20040902150830.6585cfc5.davem@redhat.com \
--to=davem@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=kaber@trash.net \
--cc=netdev@oss.sgi.com \
--cc=yoshfuji@linux-ipv6.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 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).