Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8581 closed defect (fixed)

adm5120: software bridge between VLANs is not working

Reported by: Alexey Torkhov <atorkhov@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:


Software bridge between VLANs on adm5120 board (I have Zyxel P-334WT) is not working. Symptoms are the following: in bridge only interface with least number works properly. I.e. from eth0 and eth1 it is eth0. All other interfaces perform like they are not in promisc mode. And as they have different MAC addresses, pings to router are not working (they are trying to reach main mac of bridge). Setting static arp entry on host to mac of interface and pinging router works.

Digging though source I've find one problem, that it does not enable Bridge Testing Mode as written in comments. But that does not fix the original problem with promisc mode.

Bridge between one VLAN and wifi is working, though.

--- target/linux/adm5120/files/drivers/net/adm5120sw.c.orig    2011-01-04 13:20:34.000000000 +0300
+++ target/linux/adm5120/files/drivers/net/adm5120sw.c         2011-01-04 17:02:47.000000000 +0300
@@ -962,10 +962,10 @@
        /* to the CPU, the Bridge Test Mode has to be activated.               */
        /* Check if there is any vlan in promisc mode. */
-               t &= ~CPUP_CONF_BTM; /* Disable Bridge Testing Mode */
-       else
                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);

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by Alexey Torkhov <atorkhov@…>

As it not written clearly, the patch is to set Bridge Testing Mode but doesn't fix the original problem, just related to it.

comment:2 Changed 7 years ago by Alexey Torkhov <atorkhov@…>

Seems, I was wrong. Bridging works. Pinging the router from any interface other than first one doesn't.

comment:3 Changed 7 years ago by florian

Can I close the ticket?

comment:4 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fix committed in r26673, r26674

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.