diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/act_mirred.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index c0b6863e3b87..2e9a7b91aa10 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c | |||
@@ -169,13 +169,13 @@ static int tcf_mirred(struct sk_buff *skb, struct tc_action *a, | |||
169 | goto out; | 169 | goto out; |
170 | } | 170 | } |
171 | 171 | ||
172 | skb2 = skb_act_clone(skb, GFP_ATOMIC); | 172 | at = G_TC_AT(skb->tc_verd); |
173 | skb2 = skb_act_clone(skb, GFP_ATOMIC, m->tcf_action); | ||
173 | if (skb2 == NULL) | 174 | if (skb2 == NULL) |
174 | goto out; | 175 | goto out; |
175 | 176 | ||
176 | m->tcf_bstats.bytes += qdisc_pkt_len(skb2); | 177 | m->tcf_bstats.bytes += qdisc_pkt_len(skb2); |
177 | m->tcf_bstats.packets++; | 178 | m->tcf_bstats.packets++; |
178 | at = G_TC_AT(skb->tc_verd); | ||
179 | if (!(at & AT_EGRESS)) { | 179 | if (!(at & AT_EGRESS)) { |
180 | if (m->tcfm_ok_push) | 180 | if (m->tcfm_ok_push) |
181 | skb_push(skb2, skb2->dev->hard_header_len); | 181 | skb_push(skb2, skb2->dev->hard_header_len); |
@@ -185,8 +185,8 @@ static int tcf_mirred(struct sk_buff *skb, struct tc_action *a, | |||
185 | if (m->tcfm_eaction != TCA_EGRESS_MIRROR) | 185 | if (m->tcfm_eaction != TCA_EGRESS_MIRROR) |
186 | skb2->tc_verd = SET_TC_FROM(skb2->tc_verd, at); | 186 | skb2->tc_verd = SET_TC_FROM(skb2->tc_verd, at); |
187 | 187 | ||
188 | skb2->dev = dev; | ||
189 | skb2->skb_iif = skb->dev->ifindex; | 188 | skb2->skb_iif = skb->dev->ifindex; |
189 | skb2->dev = dev; | ||
190 | dev_queue_xmit(skb2); | 190 | dev_queue_xmit(skb2); |
191 | err = 0; | 191 | err = 0; |
192 | 192 | ||