From: Herbert Xu <herbert@gondor.apana.org.au>
To: "David S. Miller" <davem@davemloft.net>, netdev@oss.sgi.com
Subject: Set truesize in pskb_expand_head
Date: Sat, 25 Sep 2004 09:20:53 +1000 [thread overview]
Message-ID: <20040924232053.GA7807@gondor.apana.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
Hi:
In order for the skb trimming to work, we need to set truesize in
pskb_expand_head. This patch does exactly that.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 342 bytes --]
===== net/core/skbuff.c 1.37 vs edited =====
--- 1.37/net/core/skbuff.c 2004-08-03 12:20:05 +10:00
+++ edited/net/core/skbuff.c 2004-09-25 09:15:23 +10:00
@@ -541,6 +541,7 @@
off = (data + nhead) - skb->head;
+ skb->truesize = size + sizeof(struct sk_buff);
skb->head = data;
skb->end = data + size;
skb->data += off;
next reply other threads:[~2004-09-24 23:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-24 23:20 Herbert Xu [this message]
2004-09-24 23:33 ` Set truesize in pskb_expand_head David S. Miller
2004-09-24 23:35 ` Herbert Xu
2004-09-24 23:37 ` Herbert Xu
2004-09-24 23:45 ` David S. Miller
2004-09-25 0:05 ` Herbert Xu
2004-09-27 19:27 ` David S. Miller
2004-09-27 21:29 ` 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=20040924232053.GA7807@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--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).