Ubiquiti EdgeRouter Lite works multi-user with -CURRENT.

Warner Losh imp at bsdimp.com
Thu May 23 17:43:44 UTC 2013


On May 23, 2013, at 5:42 AM, Milan Obuch wrote:

> On Wed, 22 May 2013 22:59:36 -0700, Juli Mallett <jmallett at FreeBSD.org>
> wrote:
> 
>> On Wed, May 22, 2013 at 10:55 PM, Milan Obuch <freebsd-mips at dino.sk>
>> wrote:
>>> Yes, you are right - now I checked with octe0 connected to 100
>>> megabit switch and it initializes correctly when booting. When I
>>> plug gigabit card now instead, it does not work - no communication
>>> on interface. Even if I do ifconfig octe down/ifconfig octe up, it
>>> does not transmit/receive packets. So I think problem is phy link
>>> speed change on live system. Reboot in this case is a big hackish
>>> 'workaround' for now - good for tests, not yet fully for real work
>>> (but if you know there will be no link speed change it is OK).
>> 
>> The link state management is crappy, I concede.  I kept it as it was
>> in the Linux code because I wanted to be able to merge driver updates
>> from Cavium, but that's not viable given how much they've changed the
>> driver anyway.  How long did you wait?  It could take between 5
>> seconds and a minute for link state to change at runtime in my
>> experience.  I looked into making this faster at one point and even
>> had a patch, but don't know where it is or why I didn't commit it.
>> 
>> If either of you wants to take a crack at fixing it I can explain what
>> to instrument in the driver and what's likely to be the problem.  Let
>> me know if that might be useful.  (Apologies of the latency is high on
>> my responding.)
>> 
>> Thanks,
>> Juli.
> 
> If you have any patches to test, some how-to what to look for and try
> to change etc... I could try to work a bit on it. It seems there is not
> much freely available resources for Cavium CPUs (I found cnusers.org is
> of interest, it seems) so some leading will be good to have :)

cnusers is Cavium's release vehicle for GPL'd  code... There's lots of code available for the Cavium processor, but the docs are kinda hard to get a hold of...

Warner


More information about the freebsd-mips mailing list