Modify

Opened 21 months ago

Last modified 18 months ago

#22316 new defect

Can't assign VLAN id >= 128 on TP-LINK 1043nd v2 (ar8327)

Reported by: fzipi@… Owned by: developers
Priority: normal Milestone: Designated Driver (Trunk)
Component: kernel Version: Chaos Calmer 15.05
Keywords: vlan, ar8327, 1043nd v2 Cc:

Description

We were struggling trying to assign vlans with vid > 128 on TP-LINK 1043nd v2 (Chaos Chalmer).

Documentation says that it supports vlans up to 4096 (or 4k).

A simple test shows this problem (/etc/config/network):

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'
        option enable_vlan4k '1'

config switch_vlan              
        option device 'switch0' 
        option vlan '127'       
        option ports '3 4 5t'
        option vid '127'

config switch_vlan
        option device 'switch0'
        option vlan '96'
        option ports '5t 6'

config switch_vlan               
        option device 'switch0'   
        option vlan '2'        
        option ports '5 6'

swconfig dev switch0 show:

Global attributes:
	enable_vlan: 1
	enable_mirror_rx: 0
	enable_mirror_tx: 0
	mirror_monitor_port: 0
	mirror_source_port: 0
	arl_table: address resolution table
....
VLAN 2:
	vid: 2
	ports: 5 6 
VLAN 96:
	vid: 96
	ports: 5t 6t 
VLAN 127:
	vid: 127
	ports: 3 4 5t 

If you change vid = 127 vid = 128 it doesn't work anymore. VLAN won't show, and device isn't configured.

Same problem happens if using swconfig:

#swconfig dev switch0 vlan 180 set ports '3 4'
failed
# swconfig dev switch0 vlan 128 show
VLAN 128:
	vid: ???
	ports: ???

but with vlan_id < 128 it works:

# swconfig dev switch0 vlan 127 set ports '3 4'
# swconfig dev switch0 vlan 127 show
VLAN 127:
	vid: 127
	ports: 3 4

Attachments (0)

Change History (2)

comment:1 Changed 21 months ago by anonymous

Could you deliver logfiles? What openwrt version have yiu used? Both cc and dd are listed. You tested both? Could you deliver both logfiles?

comment:2 Changed 18 months ago by anonymous

I was using Chaos Chalmer stable (Chaos Calmer 15.05.1, r48532)

Now I've tried with (Chaos Calmer, r49404), with the same results.

root@ap01:~# swconfig dev switch0 help
switch0: ag71xx-mdio.0(Atheros AR8327), ports: 7 (cpu @ 0), vlans: 128
     --switch
	Attribute 1 (int): enable_vlan (Enable VLAN mode)
	Attribute 2 (none): reset_mibs (Reset all MIB counters)
	Attribute 3 (int): enable_mirror_rx (Enable mirroring of RX packets)
	Attribute 4 (int): enable_mirror_tx (Enable mirroring of TX packets)
	Attribute 5 (int): mirror_monitor_port (Mirror monitor port)
	Attribute 6 (int): mirror_source_port (Mirror source port)
	Attribute 7 (string): arl_table (Get ARL table)
	Attribute 8 (none): apply (Activate changes in the hardware)
	Attribute 9 (none): reset (Reset the switch)
     --vlan
	Attribute 1 (int): vid (VLAN ID (0-4094))
	Attribute 2 (ports): ports (VLAN port mapping)
     --port
	Attribute 1 (none): reset_mib (Reset single port MIB counters)
	Attribute 2 (string): mib (Get port's MIB counters)
	Attribute 3 (int): enable_eee (Enable EEE PHY sleep mode)
	Attribute 4 (int): pvid (Primary VLAN ID)
	Attribute 5 (string): link (Get port link information)

root@ap01:~# swconfig dev switch0 vlan 127 set ports '3'
root@ap01:~#

This works ok. But when vid > 127

root@ap01:~# swconfig dev switch0 vlan 128 set ports '3'
failed
root@ap01:~#

What logs do you want? Both dmesg and logread say nothing about this.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.