#22024: RTL8366S switch hang
----------------------+------------------------
 Reporter:  bolvan    |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+------------------------
 I use WNDR3800's switch with VLANs.
 After executing 'swconfig dev switch0 load network'  switch hangs with
 20-30% probability.
 It looks like this :

 {{{
 root@wifi:~# swconfig dev switch0 load network_reset_switch
 root@wifi:~# ping 192.168.2.1
 PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
 64 bytes from 192.168.2.1: icmp_req=1 ttl=128 time=0.373 ms

 root@wifi:~# swconfig dev switch0 load network_reset_switch
 root@wifi:~# ping 192.168.2.1
 PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
 64 bytes from 192.168.2.1: icmp_req=1 ttl=128 time=0.373 ms

 root@wifi:~# swconfig dev switch0 load network_reset_switch
 root@wifi:~# ping 192.168.2.1
 PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
 64 bytes from 192.168.2.1: icmp_req=1 ttl=128 time=0.373 ms
 From 192.168.2.2 icmp_seq=1 Destination Host Unreachable

 root@wifi:~# swconfig dev switch0 load network_reset_switch
 root@wifi:~# ping 192.168.2.1
 PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
 64 bytes from 192.168.2.1: icmp_req=1 ttl=128 time=0.373 ms
 }}}

 /etc/config/network_reset_switch:
 {{{
 config switch
         option name 'switch0'
         option reset '1'
         option enable_vlan '1'
         option enable_vlan4k '1'
         option max_length '3'

 config switch_vlan
         option device 'switch0'
         option vlan '1'
         option ports '0 1 2t 5'

 config switch_vlan
         option device 'switch0'
         option vlan '2'
         option ports '2t 3'
 }}}

 Only reset operation causes problem. When reset is 0  switch does not
 hang.
 When switch is hang 'swconfig show' outputs correct configuration. No
 switch specific dmesg can be seen.

 Problem is very painful for me because reset is executed on every boot.
 I had to write cure script that pings nearby hosts and reset switch until
 its working.

--
Ticket URL: <https://dev.openwrt.org/ticket/22024>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to