From owner-freebsd-net@freebsd.org Thu Oct 27 06:52:18 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 425C3C2248F for ; Thu, 27 Oct 2016 06:52:18 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D7A45C26 for ; Thu, 27 Oct 2016 06:52:17 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.15.2/8.15.2) with ESMTPS id u9R6oHwM096065 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Oct 2016 14:50:18 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.15.2/8.15.2/Submit) id u9R6oG8W096064; Thu, 27 Oct 2016 14:50:16 +0800 (CST) (envelope-from kevlo) Date: Thu, 27 Oct 2016 14:50:16 +0800 From: Kevin Lo To: David Horwitt Cc: freebsd-net@freebsd.org Subject: Re: Adding RTL8153 support to rue(4) (actually cdce(4)) USB to Ethernet driver [SOLVED] Message-ID: <20161027065016.GA96055@ns.kevlo.org> References: <5807B630.1060806@aogsquid.ucsd.edu> <3622755d-b0cd-60bf-0f81-469d06e65595@selasky.org> <58092C6D.8080105@aogsquid.ucsd.edu> <30de3b9c-98c4-0bbc-dce2-eddc52e98b10@selasky.org> <580EE8DE.2060005@aogsquid.ucsd.edu> <20161025085012.GA80112@ns.kevlo.org> <14a75b66-5951-5ea0-5ab6-a9f18bd920c7@aogsquid.ucsd.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14a75b66-5951-5ea0-5ab6-a9f18bd920c7@aogsquid.ucsd.edu> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 06:52:18 -0000 On Tue, Oct 25, 2016 at 09:34:31PM -0700, David Horwitt wrote: > > On 10/25/16 01:50, Kevin Lo wrote: > > Been busy at work, sorry for the late reply. I have a patch that adds > > preliminary support for the RTL8153 to ure(4), available at: > > https://people.freebsd.org/~kevlo/ure.diff > > > > Performance is not good, it could be improved later. > > Can you please give it a try and let me know? Thanks. > > > > Congratulations, it seems to basically work (I didn't test it rigorously, just dhclient and a few pings). However, > I tested while wireshark was running; network traffic ceased when wireshark stopped. It appears that the native cfg > may need promiscuous mode like cdce does. > > I spent many hours trying to merge the linux r8152.c code into if_ure.c, and was overwhelmed by all the magic > numbers and lack of associated documentation. I tip my hat to you... Thanks for the testing and feedback! The revised patch [1] should fix your problem, thanks [1] https://people.freebsd.org/~kevlo/ure.diff > Cheers, > DH Kevin