* 2: Trap packet to CPU port
* The Egress filter used 1 bit per state (0: DISABLED, 1: ENABLED)
*/
- if (port != priv->cpu_port)
+ if (port != priv->cpu_port) {
priv->r->set_vlan_igr_filter(port, IGR_DROP);
+ priv->r->set_vlan_egr_filter(port, EGR_ENABLE);
+ }
+ else {
+ priv->r->set_vlan_igr_filter(port, IGR_TRAP);
+ priv->r->set_vlan_egr_filter(port, EGR_DISABLE);
+ }
- priv->r->set_vlan_egr_filter(port, EGR_ENABLE);
} else {
/* Disable ingress and egress filtering */
if (port != priv->cpu_port)