-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
lantiq: xrx200net-legacy: remove auto-enable routine in set_vlan_ports() #3245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This auto-enabling leads to problems when you try to set up some vlan config and do set the ports before setting the vid of the vlan table entries. example: swconfig dev switch0 vlan 2 set ports "2t 6t" swconfig dev switch0 vlan 2 set vid 3 swconfig dev switch0 vlan 3 set ports "3t 6t" -> Error, because the auto-enable routine in xrx200sw_set_vlan_ports() will then try to implicitly set vid to "3" (the table index) which is already used by vlan 2 and therefore results in an error. As the swconfig load command also reads the options line by line from /etc/config/network, this problem could also occur when the order of the options of a switch_vlan section is ports before vid. Also, I can't imagine any reason why we would need this auto-enable "feature". Signed-off-by: Martin Schiller <ms@dev.tdt.de>
|
If I apply your patch, I am not able to access my AP, which is connected through LAN and assigned a static IP at 192.168.1.254. Have you tested it? Edit: It definitely produces a crash and bootloop at startup if your patch is not applied. Should there not be a different implementation for it, rather removing it altogether? If it is removed then how can the device be accessed? My understanding is that the associated VLANs will not work unless you specifically enable them?? (Edit: Clarification) |
|
@ahmar20 Yes, I've tested it and it's working for me. I do not understand exactly what the problem is. So you have problems with and without my patch, right? |
|
@ahmar20 Your config is missing the Example:
|
Now it makes sense because the code that is being removed adds the |
|
The patch switching the lantiq xrx200 target to DSA in #3085 was just applied to master, this is not needed any more. |
This auto-enabling leads to problems when you try to set up some vlan
config and do set the ports before setting the vid of the vlan table
entries.
example:
swconfig dev switch0 vlan 2 set ports "2t 6t"
swconfig dev switch0 vlan 2 set vid 3
swconfig dev switch0 vlan 3 set ports "3t 6t"
-> Error, because the auto-enable routine in xrx200sw_set_vlan_ports()
will then try to implicitly set vid to "3" (the table index) which is
already used by vlan 2 and therefore results in an error.
As the swconfig load command also reads the options line by line from
/etc/config/network, this problem could also occur when the order of the
options of a switch_vlan section is ports before vid.
Also, I can't imagine any reason why we would need this auto-enable
"feature".
Signed-off-by: Martin Schiller ms@dev.tdt.de