mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
net: vlan: goto another_round instead of calling __netif_receive_skb
Now, when vlan tag on untagged in non-accelerated path is stripped from skb, headers are reset right away. Benefit from that and avoid calling __netif_receive_skb recursivelly and just use another_round. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c8d755b59a
commit
0dfe178239
1 changed files with 3 additions and 4 deletions
|
@ -3236,10 +3236,9 @@ ncls:
|
||||||
ret = deliver_skb(skb, pt_prev, orig_dev);
|
ret = deliver_skb(skb, pt_prev, orig_dev);
|
||||||
pt_prev = NULL;
|
pt_prev = NULL;
|
||||||
}
|
}
|
||||||
if (vlan_do_receive(&skb)) {
|
if (vlan_do_receive(&skb))
|
||||||
ret = __netif_receive_skb(skb);
|
goto another_round;
|
||||||
goto out;
|
else if (unlikely(!skb))
|
||||||
} else if (unlikely(!skb))
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue