/* initialize the cpu port */
w16(pdev, MV_PORTREG(CONTROL, MV_CPUPORT),
MV_PORTCTRL_ENABLED |
- MV_PORTCTRL_VLANTUN |
MV_PORTCTRL_RXTR |
MV_PORTCTRL_TXTR
);
}
/* build the target list for the cpu port */
- for (i = 0, vlmap = 0; i < ARRAY_SIZE(priv->vlans); i++)
- vlmap |= priv->vlans[i];
+ for (i = 0; i < MV_PORTS; i++)
+ vlmap |= (1 << i);
w16(pdev, MV_PORTREG(VLANMAP, MV_CPUPORT),
MV_PORTVLAN_PORTS(vlmap)