mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mediatek: hnat: fix vlan for ext-devices hnat
This commit is contained in:
parent
3fa9687ca7
commit
4747a8dcda
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user