Skip to content

Commit

Permalink
mediatek: hnat: fix vlan for ext-devices hnat
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwckf committed Jun 13, 2024
1 parent 3fa9687 commit 4747a8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ unsigned int do_hnat_ext_to_ge(struct sk_buff *skb, const struct net_device *in,
}

/*set where we come from*/
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), in->ifindex & VLAN_VID_MASK);
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), VLAN_CFI_MASK | (in->ifindex & VLAN_VID_MASK));
trace_printk(
"%s: vlan_prot=0x%x, vlan_tci=%x, in->name=%s, skb->dev->name=%s\n",
__func__, ntohs(skb->vlan_proto), skb->vlan_tci,
Expand Down

0 comments on commit 4747a8d

Please sign in to comment.