1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-02-20 06:54:43 +02:00

ar71xx: on ar7240, exclude ports from their own port vlan destination mask

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28850 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2011-11-08 00:33:15 +00:00
parent b76b60fcda
commit 4677737b0a

View File

@ -477,7 +477,6 @@ static void ar7240sw_setup_port(struct ar7240sw *as, unsigned port, u8 portmask)
{ {
struct mii_bus *mii = as->mii_bus; struct mii_bus *mii = as->mii_bus;
u32 ctrl; u32 ctrl;
u32 dest_ports;
u32 vlan; u32 vlan;
ctrl = AR7240_PORT_CTRL_STATE_FORWARD | AR7240_PORT_CTRL_LEARN | ctrl = AR7240_PORT_CTRL_STATE_FORWARD | AR7240_PORT_CTRL_LEARN |
@ -525,7 +524,7 @@ static void ar7240sw_setup_port(struct ar7240sw *as, unsigned port, u8 portmask)
/* allow the port to talk to all other ports, but exclude its /* allow the port to talk to all other ports, but exclude its
* own ID to prevent frames from being reflected back to the * own ID to prevent frames from being reflected back to the
* port that they came from */ * port that they came from */
dest_ports = AR7240_PORT_MASK_BUT(port); portmask &= AR7240_PORT_MASK_BUT(port);
/* set default VID and and destination ports for this VLAN */ /* set default VID and and destination ports for this VLAN */
vlan |= (portmask << AR7240_PORT_VLAN_DEST_PORTS_S); vlan |= (portmask << AR7240_PORT_VLAN_DEST_PORTS_S);