Skip to content
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

FS#2169 - qca8337 switch does not support VLAN IDs > 128 #7007

Open
openwrt-bot opened this issue Mar 7, 2019 · 3 comments
Open

FS#2169 - qca8337 switch does not support VLAN IDs > 128 #7007

openwrt-bot opened this issue Mar 7, 2019 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

dlang:

Supply the following if possible:

  • Device problem occurs on

c2600

  • Software versions of OpenWrt/LEDE release, packages, etc.

openwrt 18.6.2 r7676-cddd7b4c77

  • Steps to reproduce

attempt to configure a VLAN > 128

swconfig dev reports that it supports 128 VLANs with VLAN IDs in the range 0-4094
but with only 2 VLANs defined, you cannot set the vlan ID > 128

I do not find any option to enable larger VLAN IDs (enable4kvlans is not accepted)

@openwrt-bot
Copy link
Author

sarcasticadmin:

~# swconfig list Found: switch0 - gpio-0 root@OpenWrt:~# swconfig dev switch0 help switch0: gpio-0(Atheros AR8337), 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 (int): arl_age_time (ARL age time (secs)) Attribute 8 (string): arl_table (Get ARL table) Attribute 9 (none): flush_arl_table (Flush ARL table) Attribute 10 (int): igmp_snooping (Enable IGMP Snooping) Attribute 11 (int): igmp_v3 (Enable IGMPv3 support) Attribute 12 (none): apply (Activate changes in the hardware) Attribute 13 (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 (none): flush_arl_table (Flush port's ARL table entries) Attribute 5 (int): igmp_snooping (Enable port's IGMP Snooping) Attribute 6 (int): vlan_prio (Port VLAN default priority (VLAN PCP) (0-7)) Attribute 7 (int): pvid (Primary VLAN ID) Attribute 8 (unknown): link (Get port link information)

@openwrt-bot
Copy link
Author

ynezz:

Attribute 1 (int): vid (VLAN ID (0-4094))

This is wrong, as it's hardcoded value https://github.com/openwrt/openwrt/blob/master/target/linux/generic/files/drivers/net/phy/ar8216.c#L1686 which doesn't reflect what is set in the code and should be probably fixed.

Anyway, to get it working, you probably need to increase value of #define AR8X16_MAX_VLANS 128 in https://github.com/openwrt/openwrt/blob/master/target/linux/generic/files/drivers/net/phy/ar8216.h#L32 and recompile.

@willmo
Copy link

willmo commented Aug 5, 2023

It looks like this was fixed in 3f79aaa? High VLAN numbers seem to be working for me on QCA8337.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants