Re: Adding RTL8153 support to rue(4) (actually cdce(4)) USB to Ethernet driver [SOLVED]

2016-10-25 Thread David Horwitt
On 10/25/16 00:38, Hans Petter Selasky wrote:
> On 10/25/16 07:08, 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.
>>
> 
> Do you want to submit a patch upstream?
> 
> Maybe like a quirk or tunable sysctl?
> 
> --HPS 
> 

I'll convert what I've got to a tunable (I don't know quirks well enough) and 
send it on.

DH
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: Adding RTL8153 support to rue(4) (actually cdce(4)) USB to Ethernet driver [SOLVED]

2016-10-25 Thread Kevin Lo
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-unsubscr...@freebsd.org"
> 
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: Adding RTL8153 support to rue(4) (actually cdce(4)) USB to Ethernet driver [SOLVED]

2016-10-25 Thread Hans Petter Selasky

On 10/25/16 07:08, 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.



Do you want to submit a patch upstream?

Maybe like a quirk or tunable sysctl?

--HPS

___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"