From: Changli Gao Date: Thu, 24 Jun 2010 16:25:12 +0000 (+0000) Subject: act_mirred: don't clone skb when skb isn't shared X-Git-Tag: v2.6.36-rc1~571^2~437 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210d6de78c5d7c785fc532556cea340e517955e1;p=pandora-kernel.git act_mirred: don't clone skb when skb isn't shared don't clone skb when skb isn't shared When the tcf_action is TC_ACT_STOLEN, and the skb isn't shared, we don't need to clone a new skb. As the skb will be freed after this function returns, we can use it freely once we get a reference to it. Signed-off-by: Changli Gao ---- include/net/sch_generic.h | 11 +++++++++-- net/sched/act_mirred.c | 6 +++--- 2 files changed, 12 insertions(+), 5 deletions(-) Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- Reading git-diff-tree failed