mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-12 13:45:32 +00:00
ar8216: do not strip vlan tags when running with vlan_enable=0
SVN-Revision: 29718
This commit is contained in:
parent
fbf81c8e79
commit
c33e016fa5
@ -593,10 +593,13 @@ ar8216_hw_apply(struct switch_dev *dev)
|
|||||||
pvid = i;
|
pvid = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->vlan && (priv->vlan_tagged & (1 << i))) {
|
if (priv->vlan) {
|
||||||
egress = AR8216_OUT_ADD_VLAN;
|
if (priv->vlan_tagged & (1 << i))
|
||||||
|
egress = AR8216_OUT_ADD_VLAN;
|
||||||
|
else
|
||||||
|
egress = AR8216_OUT_STRIP_VLAN;
|
||||||
} else {
|
} else {
|
||||||
egress = AR8216_OUT_STRIP_VLAN;
|
egress = AR8216_OUT_KEEP;
|
||||||
}
|
}
|
||||||
if (priv->vlan) {
|
if (priv->vlan) {
|
||||||
ingress = AR8216_IN_SECURE;
|
ingress = AR8216_IN_SECURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user