Modify

Opened 3 years ago

Last modified 2 years ago

#17795 reopened defect

VG3503J Lantiq XRX200 Switch

Reported by: anonymous Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Lantiq Cc:

Description

Hi
Its seems the Vlan will not enable

[code]
root@OpenWrt:/# swconfig dev switch0 set enable_vlan 1
root@OpenWrt:/# swconfig dev switch0 set apply

root@OpenWrt:/# swconfig dev switch0 help
switch0: eth0(Lantiq XRX200 Switch), ports: 7 (cpu @ 6), vlans: 64

--switch

Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): apply (Activate changes in the hardware)
Attribute 3 (none): reset (Reset the switch)

--vlan

Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (int): enable (Enable VLAN)
Attribute 3 (ports): ports (VLAN port mapping)

--port

Attribute 1 (int): uvr (Unknown VLAN Rule)
Attribute 2 (int): vsr (VLAN Security Rule)
Attribute 3 (int): vinr (VLAN Ingress Tag Rule)
Attribute 4 (int): tvm (Transparent VLAN Mode)
Attribute 5 (int): pvid (Primary VLAN ID)
Attribute 6 (string): link (Get port link information)

root@OpenWrt:/# swconfig dev switch0 show
Global attributes:

enable_vlan:

[/code]

If you attach a second device you get the tx ring full error
[eth0: tx ring full]

A possible work around until switch support is active is to amend the dtsi file back to interface 0 and interface 1.

[code]target/linux/lantiq/dts/VG3503J.dtsi
eth@E108000 {

#address-cells = <1>;
#size-cells = <0>;
compatible = "lantiq,xrx200-net";
reg = < 0xE108000 0x3000 /* switch */

0xE10B100 0x70 /* mdio */
0xE10B1D8 0x30 /* mii */
0xE10B308 0x30 /* pmac */

;

interrupt-parent = <&icu0>;
interrupts = <73 72>;
lantiq wan;


lan1: interface@0 {

compatible = "lantiq,xrx200-pdi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
mac-address = [ 00 11 22 33 44 55 ];
ethernet@4 {

compatible = "lantiq,xrx200-pdi-port";
reg = <4>;
phy-mode = "mii";
phy-handle = <&phy13>;

};

};


lan2: interface@1 {

compatible = "lantiq,xrx200-pdi";

#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
mac-address = [ 00 11 22 33 44 56 ];


ethernet@2 {

compatible = "lantiq,xrx200-pdi-port";
reg = <2>;
phy-mode = "mii";
phy-handle = <&phy11>;

};

};

[/code]

Switch fix would be great, if not the dtsi may need amending to fix the tx ring error.

Thanks!

Attachments (0)

Change History (5)

comment:1 Changed 3 years ago by blogic

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

fixed in r42574

comment:2 Changed 3 years ago by vrx200

  • Resolution fixed deleted
  • Status changed from closed to reopened

Thanks John.

Unfortunately still seems an issue on the VG3503J.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r42576)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------

root@OpenWrt:/# swconfig dev switch0 set enable_vlan 1
root@OpenWrt:/# swconfig dev switch0 set apply
root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 0

root@OpenWrt:/# swconfig dev switch0 help
switch0: eth0(Lantiq XRX200 Switch), ports: 7 (cpu @ 6), vlans: 64
     --switch
        Attribute 1 (int): enable_vlan (Enable VLAN mode)
        Attribute 2 (none): apply (Activate changes in the hardware)
        Attribute 3 (none): reset (Reset the switch)
     --vlan
        Attribute 1 (int): vid (VLAN ID (0-4094))
        Attribute 2 (int): enable (Enable VLAN)
        Attribute 3 (ports): ports (VLAN port mapping)
     --port
        Attribute 1 (int): uvr (Unknown VLAN Rule)
        Attribute 2 (int): vsr (VLAN Security Rule)
        Attribute 3 (int): vinr (VLAN Ingress Tag Rule)
        Attribute 4 (int): tvm (Transparent VLAN Mode)
        Attribute 5 (int): pvid (Primary VLAN ID)
        Attribute 6 (string): link (Get port link information)


Thanks as always for the all the lantiq work you do!

comment:3 Changed 3 years ago by manty

I'm also finding this problem with the vlans not being enabled on the switch on a livebox 2.1 (arv7519rw22).
After a full vlan setup is made you can see traffic from one vlan port going out of the ports on other vlans.

Is there any test we can do to help with this?

comment:4 Changed 3 years ago by anonymous

any word on when this will be fixed?
perhaps revert the changes of the dsti to the seperate int's for now until it's fixed?

comment:5 Changed 2 years ago by manty

I did apply back the changes to separate the interfaces but still I see traffic from the wan on the lan :-(

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.