Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8919bc13 authored by Jamal Hadi Salim's avatar Jamal Hadi Salim Committed by David S. Miller
Browse files

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: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c2bceb3d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {