From owner-freebsd-net@freebsd.org Tue Oct 25 08:52:39 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 C6ED3C1FCC5 for ; Tue, 25 Oct 2016 08:52:39 +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 6DEEBBBB for ; Tue, 25 Oct 2016 08:52:38 +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 u9P8oLE9080143 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 25 Oct 2016 16:50:21 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.15.2/8.15.2/Submit) id u9P8oIm5080137; Tue, 25 Oct 2016 16:50:18 +0800 (CST) (envelope-from kevlo) Date: Tue, 25 Oct 2016 16:50:12 +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: <20161025085012.GA80112@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <580EE8DE.2060005@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: Tue, 25 Oct 2016 08:52:39 -0000 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. Kevin On Mon, Oct 24, 2016 at 10:08:46PM -0700, David Horwitt wrote: > > ... or, at least, worked around. > > I added a SetEthernetPacketFilter request with wValue PACKET_TYPE_PROMISCUOUS in cdce_init() (right before the > cdce_start() call) and joy ensued. > > Note that (PACKET_TYPE_DIRECTED | PACKET_TYPE_BROADCAST) did _not_ work, but setting the promiscuous bit was the > key. > > HPS: thanks again for your help. > > Cheers, > DH > > On 10/21/16 00:18, Hans Petter Selasky wrote: > > On 10/20/16 22:43, David Horwitt wrote: > >> On 10/19/16 11:25, Hans Petter Selasky wrote: > >> Do you mean that I need to implement a small driver at VID:PID (0bda:8153 for this device) using cfg 0 to initialize the > >> built-in MII (using the Linux RTL8152/8153 driver as a model), and then switch to cfg 1 to use the CDC device for actual > >> operation? > >> > > > > No, I think the cfg 1 with CDC has the additional interface. Look at what the Linux driver does or get another ethernet > > adapter :-) > > > > --HPS > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >