From: Zach Brown <zach.brown@oracle.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@vger.kernel.org
Subject: Re: [RFC][PATCH] Avoid multi-page allocs for large mtu datagram sends
Date: Wed, 12 Apr 2006 11:22:58 -0700 [thread overview]
Message-ID: <443D4582.5000301@oracle.com> (raw)
In-Reply-To: <20060412162035.GA18572@gondor.apana.org.au>
[-- Attachment #1: Type: text/plain, Size: 519 bytes --]
Herbert Xu wrote:
> On Wed, Apr 05, 2006 at 05:51:02PM +0000, Zach Brown wrote:
>> 2) I changed the final-frag test to be length + fraggap as the math later on
>> seemed to match that.. is that OK?
>
> Yes that's a real bug introduced by a previous rework. Could you
> please split that off into a separate patch?
Sure, here it is by itself. I lightly tested this but didn't actually
use anything that has a non-zero trailer len, I don't think.
Did you have an opinion of the rest of the original patch?
- z
[-- Attachment #2: ip-append-data-fraggap-math-0.patch --]
[-- Type: text/x-patch, Size: 837 bytes --]
[PATCH] ip_output: account for fraggap when checking to add trailer_len
During other work I noticed that ip_append_data() seemed to be forgetting to
include the frag gap in its calculation of a fragment that consumes the rest of
the payload. Herbert confirmed that this was a bug that snuck in during a
previous rework.
Signed-off-by: Zach Brown <zach.brown@oracle.com>
Index: 2.6.17-rc1-mm2-fraggap/net/ipv4/ip_output.c
===================================================================
--- 2.6.17-rc1-mm2-fraggap.orig/net/ipv4/ip_output.c
+++ 2.6.17-rc1-mm2-fraggap/net/ipv4/ip_output.c
@@ -904,7 +904,7 @@ alloc_new_skb:
* because we have no idea what fragment will be
* the last.
*/
- if (datalen == length)
+ if (datalen == length + fraggap)
alloclen += rt->u.dst.trailer_len;
if (transhdrlen) {
next prev parent reply other threads:[~2006-04-12 18:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060405175102.GA28166@tetsuo.zabbo.net>
2006-04-12 16:20 ` [RFC][PATCH] Avoid multi-page allocs for large mtu datagram sends Herbert Xu
2006-04-12 18:22 ` Zach Brown [this message]
2006-04-12 18:31 ` Herbert Xu
2006-04-13 12:57 ` Herbert Xu
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=443D4582.5000301@oracle.com \
--to=zach.brown@oracle.com \
--cc=herbert@gondor.apana.org.au \
--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 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).