Hiya!
I seem to be having a problem with using the OTG ethernet gadget driver where it does not transmit any bytes, yet receives them just fine.
I compiled LEDE with support for g_ether and can bring up the interface just fine it's just that the interface never sends anything out.
The same device works fine in Raspbian so it's not a hardware issue.
ifconfig output:
root@LEDE:/# ifconfig usb0
usb0 Link encap:Ethernet HWaddr 92:3A:AA:A8:BA:03
inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::903a:aaff:fea8:ba03/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:896 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39543 (38.6 KiB) TX bytes:0 (0.0 B)
tcpdump output
[ 1573.633258] device usb0 entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on usb0, link-type EN10MB (Ethernet), capture size 262144 bytes
07:46:17.397968 ARP, Request who-has 192.168.5.1 tell 192.168.5.2, length 28
07:46:18.398364 ARP, Request who-has 192.168.5.1 tell 192.168.5.2, length 28
07:46:19.403690 ARP, Request who-has 192.168.5.1 tell 192.168.5.2, length 28
07:46:20.408980 ARP, Request who-has 192.168.5.1 tell 192.168.5.2, length 28
07:46:21.410056 ARP, Request who-has 192.168.5.1 tell 192.168.5.2, length 28
/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdfc:8387:6126::/48'
config interface 'usb0'
option name 'usb0'
option ifname 'usb0'
option proto 'static'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
config interface 'lan'
option type 'bridge'
option ifname 'wlan0'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
I've been playing with this for the past day and a half and so far no searches have helped and TX is always at 0.
Any ideas?