From: Jamal Hadi Salim Date: Mon, 15 Aug 2011 05:25:40 +0000 (+0000) Subject: net_sched: fix port mirror/redirect stats reporting X-Git-Tag: MMI-PSA29.97-13-9~18518^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8919bc13e8d92c5b082c5c0321567383a071f5bc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net_sched: fix port mirror/redirect stats reporting When a redirected or mirrored packet is dropped by the target device we need to record statistics. Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index 102fc212cd64..e051398fdf6b 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c @@ -196,8 +196,7 @@ static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a, skb2->skb_iif = skb->dev->ifindex; skb2->dev = dev; - dev_queue_xmit(skb2); - err = 0; + err = dev_queue_xmit(skb2); out: if (err) {