android_kernel_xiaomi_sm8350/include
Changli Gao 210d6de78c 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 <xiaosuo@gmail.com>
----
 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 <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-06-28 23:24:32 -07:00
..
acpi Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2010-05-28 14:42:18 -07:00
asm-generic
crypto
drm
keys
linux macvlan: 64 bit rx counters 2010-06-28 23:24:30 -07:00
math-emu
media
mtd
net act_mirred: don't clone skb when skb isn't shared 2010-06-28 23:24:32 -07:00
pcmcia
rdma
rxrpc net: use __packed annotation 2010-06-03 03:21:52 -07:00
scsi
sound
trace drop unused dentry argument to ->fsync 2010-05-27 22:05:02 -04:00
video
xen
Kbuild