From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Subject: Re: [PATCH net-next v6 0/3] The huawei_cdc_ncm driver / E3276 problem Date: Fri, 14 Mar 2014 14:33:36 +0100 Message-ID: <87vbvgnbv3.fsf@nemi.mork.no> References: <1383555049-24834-1-git-send-email-bjorn@mork.no> <20140313202557.GV3200@reaktio.net> <1394746907.15946.8.camel@dcbw.local> <20140313220812.GW3200@reaktio.net> <20140314075548.GX3200@reaktio.net> <87wqfxnppc.fsf@nemi.mork.no> <20140314084159.GA3200@reaktio.net> <87siqlnol8.fsf@nemi.mork.no> <20140314090525.GB3200@reaktio.net> <87ob19nndo.fsf@nemi.mork.no> <20140314125934.GC3200@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Dan Williams , netdev@vger.kernel.org, linux-usb@vger.kernel.org, Enrico Mioso , Oliver Neukum To: Pasi =?utf-8?B?S8Okcmtrw6RpbmVu?= Return-path: Received: from canardo.mork.no ([148.122.252.1]:50876 "EHLO canardo.mork.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754447AbaCNNdx convert rfc822-to-8bit (ORCPT ); Fri, 14 Mar 2014 09:33:53 -0400 In-Reply-To: <20140314125934.GC3200@reaktio.net> ("Pasi =?utf-8?Q?K=C3=A4r?= =?utf-8?Q?kk=C3=A4inen=22's?= message of "Fri, 14 Mar 2014 14:59:34 +0200") Sender: netdev-owner@vger.kernel.org List-ID: Pasi K=C3=A4rkk=C3=A4inen writes: > On Fri, Mar 14, 2014 at 10:24:51AM +0100, Bj=C3=B8rn Mork wrote: >> Pasi K=C3=A4rkk=C3=A4inen writes: >>=20 >> > # ifconfig wwp0s26u1u5i1 >> > wwp0s26u1u5i1: flags=3D4163 mtu 1= 500 >> > inet 10.8.219.204 netmask 255.255.255.248 broadcast 10.8= =2E219.207 >> > inet6 fe80::e5b:8fff:fe27:9a64 prefixlen 64 scopeid 0x20= >> > ether 0c:5b:8f:27:9a:64 txqueuelen 1000 (Ethernet) >> > RX packets 0 bytes 0 (0.0 B) >> > RX errors 1493 dropped 0 overruns 0 frame 0 >> > >> > Note the RX errors.. ?=20 >>=20 >>=20 >> Yes, that is not expected and is quite possibly hiding the explanati= on. >>=20 > > Ok, good to know. > >> Could you do a usbmon dump to try to capture the contents of the USB >> buffers we drop here? See >> https://www.kernel.org/doc/Documentation/usb/usbmon.txt >>=20 >> Note that the text interface may truncate the buffers too early for = the >> result to be useful. wireshark/thsark will for example allow you to >> capture the whole buffer (when snooping on the "usbmonX" interface -= not >> the netdev!) >>=20 > > I'll try that..=20 > >> We also have a few debug messages in the driver for different types = of >> errors we drop. Turning on those might explain something (assuming = you >> have DYNAMIC_DEBUG enabled): >>=20 >> ethtool -s wwp0s26u1u5i1 msglvl rx_err on >>=20 >> Note that these will be logged at "debug" level, so you need to turn= on >> logging/showing such messages as well. >>=20 > > # uname -a > Linux localhost.localdomain 3.13.6-200.fc20.x86_64 #1 SMP Fri Mar 7 1= 7:02:28 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux > > # grep -i DYNAMIC_DEBUG /boot/config-3.13.6-200.fc20.x86_64 > CONFIG_DYNAMIC_DEBUG=3Dy > > # echo 8 > /proc/sys/kernel/printk > # cat /proc/sys/kernel/printk > 8 4 1 7 > > # ethtool -s wwp0s26u1u5i1 msglvl rx_err on > > Is that enough? I believe so, but I don't feel too steady on all the dynamic-ness here. > I don't see any errors logged in "dmesg" output, > but the RX errors counters do keep increasing in ifconfig output..=20 OK, let's see if we can figure it out based on the usbmon data. Bj=C3=B8rn