From: Lennert Buytenhek Date: Wed, 1 Oct 2008 09:33:12 +0000 (-0700) Subject: net: add skb_recycle_check() to enable netdriver skb recycling X-Git-Tag: v2.6.28-rc1~717^2~164 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04a4bb55bcf35b63d40fd2725e58599ff8310dd7;p=pandora-kernel.git net: add skb_recycle_check() to enable netdriver skb recycling This patch adds skb_recycle_check(), which can be used by a network driver after transmitting an skb to check whether this skb can be recycled as a receive buffer. skb_recycle_check() checks that the skb is not shared or cloned, and that it is linear and its head portion large enough (as determined by the driver) to be recycled as a receive buffer. If these conditions are met, it does any necessary reference count dropping and cleans up the skbuff as if it just came from __alloc_skb(). Signed-off-by: Lennert Buytenhek Signed-off-by: David S. Miller --- Reading git-diff-tree failed