Commit 8919bc13e8d92c5b082c5c0321567383a071f5bc

Authored by Jamal Hadi Salim
Committed by David S. Miller
1 parent c2bceb3d7f

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 <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

net/sched/act_mirred.c
... ... @@ -196,8 +196,7 @@
196 196  
197 197 skb2->skb_iif = skb->dev->ifindex;
198 198 skb2->dev = dev;
199   - dev_queue_xmit(skb2);
200   - err = 0;
  199 + err = dev_queue_xmit(skb2);
201 200  
202 201 out:
203 202 if (err) {