net: Allow skb_recycle_check to be done in stages
commit3d153a7c8b23031df35e61377c0600a6c96a8b0b
authorAndy Fleming <afleming@freescale.com>
Thu, 13 Oct 2011 04:33:54 +0000 (13 04:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 19:59:45 +0000 (19 15:59 -0400)
treef5c7f622331728ba12f40c2ebb66666ce3d924fd
parent1e5c22cde3b85737921d3ec6ecf2c356e5b64ea7
net: Allow skb_recycle_check to be done in stages

skb_recycle_check resets the skb if it's eligible for recycling.
However, there are times when a driver might want to optionally
manipulate the skb data with the skb before resetting the skb,
but after it has determined eligibility.  We do this by splitting the
eligibility check from the skb reset, creating two inline functions to
accomplish that task.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c