Bug 103411 - Ethernet frames get broken for g_ether / g_cdc
Summary: Ethernet frames get broken for g_ether / g_cdc
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: ARM Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 09:22 UTC by Alexander Krause
Modified: 2017-10-27 05:06 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.1.2 / 4.1.6
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Alexander Krause 2015-08-24 09:22:22 UTC
Using the ARM Board AriaG25 (http://acmesystems.it) with kernel >= 4.x.x the g_ether (USB Ethernet Gadget) seems broken.

While trying to ping the other peer, tcpdump reports broken frames:

s9 erazor # tcpdump -i usb0 icmp
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on usb0, link-type EN10MB (Ethernet), capture size 262144 bytes
11:17:41.303061 IP truncated-ip - 34 bytes missing! 10.1.1.254 > 10.1.1.1: ICMP echo request, id 1813, seq 108, length 64
Comment 1 mtfuji77777 2015-08-25 11:01:22 UTC
This problem can be recreated on Arietta G25 (http://acmesystems.it) too.
On Arietta G25 with 4.1.6, arping gets through between linux host and Arietta.
Since arp packets are 28 bytes long, it makes sense to assume packets longer than 30 bytes are either truncated or messed up.

root@ubuntu:~# arping 192.168.10.10 -I usb0
ARPING 192.168.10.10 from 192.168.10.20 usb0
Unicast reply from 192.168.10.10 [16:D7:48:35:53:62]  130.278ms
Unicast reply from 192.168.10.10 [16:D7:48:35:53:62]  1.760ms
Unicast reply from 192.168.10.10 [16:D7:48:35:53:62]  1.831ms
Unicast reply from 192.168.10.10 [16:D7:48:35:53:62]  1.463ms
Unicast reply from 192.168.10.10 [16:D7:48:35:53:62]  2.442ms
Unicast reply from 192.168.10.10 [16:D7:48:35:53:62]  2.303ms

Icmp echo packets do not get through (not truncated) in both ways unlike the previous post. 
One thing to note is that if I fire ping from arietta, linux host's ifconfig reports increasing RX errors (errors are as many as icmp echoes sent).
Comment 2 Greg Kroah-Hartman 2015-08-25 15:34:01 UTC
On Mon, Aug 24, 2015 at 09:22:22AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=103411
> 
>             Bug ID: 103411
>            Summary: Ethernet frames get broken for g_ether / g_cdc

Please send this to the linux-usb@vger.kernel.org mailing list.
Comment 3 Cedric Hombourger 2017-10-27 05:06:53 UTC
Should we close this issue

Note You need to log in before you can comment on or make changes to this bug.