OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by David Lang - 07.03.2019

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

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)

Robert James Hernandez commented on 07.03.2019 02:14
~# 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)
Project Manager
Petr Štetiar commented on 07.03.2019 11:39
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.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing