[FS#211] TP-Link WD8970 Ethernet switch cannot receive

LEDE Bugs lede-bugs at lists.infradead.org
Fri Oct 7 03:47:49 PDT 2016


A new Flyspray task has been opened.  Details are below. 

User who did this - dwmw2 (dwmw2) 

Attached to Project - LEDE Project
Summary - TP-Link WD8970 Ethernet switch cannot receive
Task Type - Bug Report
Category - Kernel
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I was running OpenWRT, then upgraded to LEDE with a snapshot on 2016-10-06, with the following config:


config interface 'lan'
	option type 'bridge'
	option ifname 'eth0.1'
	option _orig_ifname 'eth0.1 wlan0'
	option _orig_bridge 'true'
	option proto 'dhcp'
	option hostname 'td8970'

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

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


I've no idea where the switch config came from, but it was working.

I built my own trunk image today, and it no longer works. There is... strangeness with the VLAN header on RX, and nothing is ever recognised. TX is fine.

This is what happens on the wire:

11:40:03.629245 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from e8:94:f6:ed:e1:f4, length 300
	0x0000:  ffff ffff ffff e894 f6ed e1f4 0800 4500  ..............E.
	0x0010:  0148 0000 0000 4011 79a6 0000 0000 ffff  .H.... at .y.......
	0x0020:  ffff 0044 0043 0134 9f8a 0101 0600 6a45  ...D.C.4......jE
	...c
	0x0130:  7020 312e 3235 2e30 0c06 7464 3839 3730  p.1.25.0..td8970
	0x0140:  ff00 0000 0000 0000 0000 0000 0000 0000  ................
	0x0150:  0000 0000 0000                           ......
11:40:03.630049 IP 90.155.92.193.67 > 90.155.92.252.68: BOOTP/DHCP, Reply, length 317
	0x0000:  e894 f6ed e1f4 000a fa22 0096 0800 4500  ........."....E.
	0x0010:  0159 c706 0000 4011 439a 5a9b 5cc1 5a9b  .Y.... at .C.Z.\.Z.
	0x0020:  5cfc 0043 0044 0145 704a 0201 0600 6a45  \..C.D.EpJ....jE
	0x0030:  9773 274d 0000 0000 0000 5a9b 5cfc 5a9b  .s'M......Z.\.Z.
	0x0040:  5cc1 0000 0000 e894 f6ed e1f4 0000 0000  \...............
	0x0050:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x00f0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0100:  0000 0000 0000 0000 0000 0000 0000 0000  ................
	0x0110:  0000 0000 0000 6382 5363 3501 0236 045a  ......c.Sc5..6.Z
	0x0120:  9b5c c133 0400 00a8 c03a 0400 0054 603b  .\.3.....:...T`;
	0x0130:  0400 0093 a801 04ff ffff c01c 045a 9b5c  .............Z.\
	0x0140:  ff03 045a 9b5c c10f 0d69 6e66 7261 6465  ...Z.\...infrade
	0x0150:  6164 2e6f 7267 0608 5a9b 5cd1 5a9b 5cc1  ad.org..Z.\.Z.\.
	0x0160:  2a04 5a9b 5cc1 ff                        *.Z.\..



This is what I get from tcpdump on the eth0 interface:

11:40:03.602400 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from e8:94:f6:ed:e1:f4, length 300
        0x0000:  ffff ffff ffff e894 f6ed e1f4 8100 0001  ................
        0x0010:  0800 4500 0148 0000 0000 4011 79a6 0000  ..E..H.... at .y...
        0x0020:  0000 ffff ffff 0044 0043 0134 9f8a 0101  .......D.C.4....
        ...
        0x0130:  7564 6863 7020 312e 3235 2e30 0c06 7464  udhcp.1.25.0..td
        0x0140:  3839 3730 ff00 0000 0000 0000 0000 0000  8970............
        0x0150:  0000 0000 0000 0000 0000                 ..........
11:40:03.603441 IP truncated-ip - 44 bytes missing! 90.155.92.252 > 0.67.0.68: ip-proto-155
        0x0000:  e1f4 000a fa22 0096 8100 0001 0800 4500  ....."........E.
        0x0010:  0159 c706 439a 5a9b 5cc1 5a9b 5cfc 0043  .Y..C.Z.\.Z.\..C
        0x0020:  0044 0145 98c6 0201 0600 6a45 9773 274d  .D.E......jE.s'M
        0x0030:  0000 5a9b 5cfc 5a9b 5cc1 0000 0000 e894  ..Z.\.Z.\.......
        0x0040:  f6ed e1f4 0000 0000 0000 0000 0000 0000  ................
        0x0050:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0060:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0070:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0080:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0090:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00a0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00b0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00c0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00d0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00e0:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x00f0:  0000 0000 5363 3501 0236 045a 9b5c c133  ....Sc5..6.Z.\.3
        0x0100:  0400 00a8 c03a 0400 0054 603b 0400 0093  .....:...T`;....
        0x0110:  ffff c01c 045a 9b5c ff03 045a 9b5c c10f  .....Z.\...Z.\..
        0x0120:  0d69 6e66 7261 6465 6164 2e6f 5a9b 5cd1  .infradead.oZ.\.
        0x0130:  5a9b 5cc1 2a04 5a9b 5cc1 ff              Z.\.*.Z.\..



More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=211



More information about the lede-bugs mailing list