Skip to content

Commit

Permalink
net_sched: fix port mirror/redirect stats reporting
Browse files Browse the repository at this point in the history
When a redirected or mirrored packet is dropped by the target
device we need to record statistics.

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jamal Hadi Salim authored and David S. Miller committed Aug 18, 2011
1 parent c2bceb3 commit 8919bc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/sched/act_mirred.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8919bc1

Please sign in to comment.