mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 20:53:22 +02:00
adm5120: fix promiscuous mode handling (patch from #8581)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26673 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e54866b2fb
commit
18020f432d
@ -962,10 +962,10 @@ static void adm5120_if_set_multicast_list(struct net_device *dev)
|
|||||||
/* to the CPU, the Bridge Test Mode has to be activated. */
|
/* to the CPU, the Bridge Test Mode has to be activated. */
|
||||||
|
|
||||||
/* Check if there is any vlan in promisc mode. */
|
/* Check if there is any vlan in promisc mode. */
|
||||||
if (t & (SWITCH_PORTS_NOCPU << CPUP_CONF_DUNP_SHIFT))
|
if (~t & (SWITCH_PORTS_NOCPU << CPUP_CONF_DUNP_SHIFT))
|
||||||
t &= ~CPUP_CONF_BTM; /* Disable Bridge Testing Mode */
|
|
||||||
else
|
|
||||||
t |= CPUP_CONF_BTM; /* Enable Bridge Testing Mode */
|
t |= CPUP_CONF_BTM; /* Enable Bridge Testing Mode */
|
||||||
|
else
|
||||||
|
t &= ~CPUP_CONF_BTM; /* Disable Bridge Testing Mode */
|
||||||
|
|
||||||
sw_write_reg(SWITCH_REG_CPUP_CONF, t);
|
sw_write_reg(SWITCH_REG_CPUP_CONF, t);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user