summaryrefslogtreecommitdiff
path: root/drivers/net/phy/mdio-octeon.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-06-24 20:25:12 +0400
committerDavid S. Miller <davem@davemloft.net>2010-06-29 10:24:32 +0400
commit210d6de78c5d7c785fc532556cea340e517955e1 (patch)
treee4bbac89a8bc16154f51ad61e140be1b7bd2b92d /drivers/net/phy/mdio-octeon.c
parentc4ead4c595cd54cf7b1a184d4f888ce0d7cce7d4 (diff)
downloadlinux-210d6de78c5d7c785fc532556cea340e517955e1.tar.xz
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>
Diffstat (limited to 'drivers/net/phy/mdio-octeon.c')
0 files changed, 0 insertions, 0 deletions