]> git.baikalelectronics.ru Git - kernel.git/commit
net: Allow skb_recycle_check to be done in stages
authorAndy Fleming <afleming@freescale.com>
Thu, 13 Oct 2011 04:33:54 +0000 (04:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 19:59:45 +0000 (15:59 -0400)
commit405c662f61a52057554e1f921fab00b19a331242
treef5c7f622331728ba12f40c2ebb66666ce3d924fd
parent21208660fb791668d6c3b2fc019b08b41f3569a2
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