From: "David S. Miller" <davem@davemloft.net>
To: herbert@gondor.apana.org.au
Cc: netdev@vger.kernel.org
Subject: Re: skb->truesize assertion checking for TCP
Date: Wed, 19 Apr 2006 23:17:03 -0700 (PDT) [thread overview]
Message-ID: <20060419.231703.35841080.davem@davemloft.net> (raw)
In-Reply-To: <20060420050406.GA22105@gondor.apana.org.au>
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Thu, 20 Apr 2006 15:04:06 +1000
> On Wed, Apr 19, 2006 at 09:55:13PM -0700, David S. Miller wrote:
> > +static inline void skb_truesize_check(struct sk_buff *skb)
> > +{
> > + if (unlikely((int)skb->truesize < sizeof(struct sk_buff)))
> > + skb_truesize_bug(skb);
> > +}
>
> I think we can go for the stronger test:
>
> skb->truesize < sizeof(struct sk_buff) + skb->len
Agreed, let me see if that triggers on my machine before
I commit this :-)
next prev parent reply other threads:[~2006-04-20 6:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-20 4:55 skb->truesize assertion checking for TCP David S. Miller
2006-04-20 5:04 ` Herbert Xu
2006-04-20 6:17 ` David S. Miller [this message]
2006-04-25 16:49 ` Jesse Brandeburg
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=20060419.231703.35841080.davem@davemloft.net \
--to=davem@davemloft.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.