]> 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)
commitdc6fcd53b80656f6504b32f6d6e3dd64a8014b9a
treef5c7f622331728ba12f40c2ebb66666ce3d924fd
parent7604512d777b7b6d008ccc5ebd78c52b1f4656ea
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