Skip to contentSkip to conversation

net_sched: fix port mirror/redirect stats reporting

PATCH Applied jamal 2 participants 2 messages Aug 15, 2011 – Aug 18, 2011

Subsystems (3)
lore
Share & tools
lore

jamal

author
#0 lore raw

PATCH 1/1 net_sched: fix port mirror/redirect stats reporting

commit 6a51508a01671114c236602d071d4bff53422c60

Author: Jamal Hadi Salim <[email protected]>
Date:   Mon Aug 15 11:17:06 2011 -0400

[PATCH] 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.

net/sched/act_mirred.c +1 -2
index 961386e..d5ef6ec 100644
@@ -196,8 +196,7 @@ static int tcf_mirred(struct sk_buff *skb, 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) {
maintainer Applied
#1 lore raw

From: jamal <[email protected]>
Date: Mon, 15 Aug 2011 11:25:40 -0400

Quoted 10 lines

commit 6a51508a01671114c236602d071d4bff53422c60

Author: Jamal Hadi Salim <[email protected]>
Date:   Mon Aug 15 11:17:06 2011 -0400

[PATCH] 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.

Applied, thanks.