mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
net/core: use __vlan_hwaccel helpers
This removes assumptions about VLAN_TAG_PRESENT bit. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
35c4a95d95
commit
b1817524c0
3 changed files with 7 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ static int tcf_vlan_act(struct sk_buff *skb, const struct tc_action *a,
|
|||
/* extract existing tag (and guarantee no hw-accel tag) */
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
tci = skb_vlan_tag_get(skb);
|
||||
skb->vlan_tci = 0;
|
||||
__vlan_hwaccel_clear_tag(skb);
|
||||
} else {
|
||||
/* in-payload vlan tag, pop it */
|
||||
err = __skb_vlan_pop(skb, &tci);
|
||||
|
|
|
|||
Loading…
Reference in a new issue