lkml.org 
[lkml]   [2006]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/1] network memory allocator.
From
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Date: Mon, 14 Aug 2006 15:04:03 +0400

> /* These elements must be at the end, see alloc_skb() for details. */
> - unsigned int truesize;
> + unsigned int truesize, __tsize;

There is no real need for new member.

> - kfree(skb->head);
> + avl_free(skb->head, skb->__tsize);

Just use "skb->end - skb->head + sizeof(struct skb_shared_info)"
as the size argument.

Then, there is no reason for skb->__tsize :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-14 13:25    [W:1.624 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site