[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1318525990.2745.33.camel@bwh-desktop>
Date: Thu, 13 Oct 2011 18:13:10 +0100
From: Ben Hutchings <bhutchings@...arflare.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>, Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH net-next] net: more accurate skb truesize
On Thu, 2011-10-13 at 19:11 +0200, Eric Dumazet wrote:
> Le jeudi 13 octobre 2011 à 17:32 +0100, Ben Hutchings a écrit :
>
> > Fair enough, but please add a comment explaining this.
> >
>
>
> What about :
>
> /* We do our best to align skb_shared_info on a separate cache
> * line. It usually works because kmalloc(X > CACHE_BYTES) gives
> * aligned memory blocks, unless SLUB/SLAB debug is enabled.
> */
> size += SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
Yes, that seems like a good explanation.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
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