summaryrefslogtreecommitdiffstats
path: root/drivers/net/sunbmac.h
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@marvell.com>2008-10-01 11:33:12 +0200
committerDavid S. Miller <davem@davemloft.net>2008-10-01 11:33:12 +0200
commit04a4bb55bcf35b63d40fd2725e58599ff8310dd7 (patch)
treea4be70eeb5b33829467851904fcdc26522c24a68 /drivers/net/sunbmac.h
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff)
downloadlinux-04a4bb55bcf35b63d40fd2725e58599ff8310dd7.tar.xz
linux-04a4bb55bcf35b63d40fd2725e58599ff8310dd7.zip
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 <buytenh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sunbmac.h')
0 files changed, 0 insertions, 0 deletions