[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1374605662.3449.49.camel@edumazet-glaptop>
Date: Tue, 23 Jul 2013 11:54:22 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: fix comment above build_skb()
On Tue, 2013-07-23 at 19:04 +0100, Florian Fainelli wrote:
> Sure, would something like:
>
> "@data must have been allocated by kmalloc() if frag_size is 0,
> otherwise any data buffer (vmalloc, DMA..) is suitable"
>
Actually not, the other case must be a page frag, because we are going
to use get_page() and put_page() during skb lifetime.
netlink case is really special/hacky, because it makes sure those
get_page()/put_page() calls wont ever happen.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists