From owner-freebsd-mips@FreeBSD.ORG Thu May 23 05:59:58 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 47ECFFBD for ; Thu, 23 May 2013 05:59:58 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx1.freebsd.org (Postfix) with ESMTP id C09453C7 for ; Thu, 23 May 2013 05:59:57 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id v20so2962298lbc.30 for ; Wed, 22 May 2013 22:59:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=RBHB4zE3y78w7LkEXmkCBV5dH/Vi2u4gHHqh1F4zojA=; b=NgSFHH5D7pzFZ59jEvkwDN+86+fOOzTzK46mSDSN0nECuFpZ5f3Xns0Mh43+HdSov7 FQmVbbivQOtVJZEUhtDDB5cNeZGQJVDbPc1+iTpvt2bkpYdBpDLWYUE1b2RPYFgBn/7m J9gWiM8JI1G2pwxcQZC3PVcn9+DIXB3u2z/Q41iBfebj6k9wzjhLKE733OFvFRPXpdts jOZiHwjKLya9Rye7Dks17tFFUUKNAVHy5G0UxP9thVFCogcdM1bc0tjAukiPsnLsmYUO yLelLmscvmFdPciPnZ9orMgedZpSoXgWIOlQhWQSKP4CX0u8s2AMQp4A5qsJOfYFNLez Tkkw== X-Received: by 10.112.74.45 with SMTP id q13mr5695731lbv.73.1369288796224; Wed, 22 May 2013 22:59:56 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.152.129.195 with HTTP; Wed, 22 May 2013 22:59:36 -0700 (PDT) In-Reply-To: <20130523075537.37e4bcba@zeta.dino.sk> References: <20130516111059.38543d57@wind.dino.sk> <20130516131642.adfae355aa3bf7767e9b56e5@ddteam.net> <20130516124248.33ae4e05@wind.dino.sk> <51952112.9010607@rewt.org.uk> <20130517192206.5db0533f@zeta.dino.sk> <51966CB6.2040701@rewt.org.uk> <20130520110659.1d1d2165@zeta.dino.sk> <20130520164001.5f7d99b8@zeta.dino.sk> <20130520172508.087daf7b@zeta.dino.sk> <20130523070225.4d9a3a59@zeta.dino.sk> <519DA801.2090205@rewt.org.uk> <20130523075537.37e4bcba@zeta.dino.sk> From: Juli Mallett Date: Wed, 22 May 2013 22:59:36 -0700 X-Google-Sender-Auth: Njf3VXA8FX-MvYyGh1ac8Va01qM Message-ID: Subject: Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT. To: Milan Obuch Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnPeM5pLx98Frb6BgRBrKHNQPwbm4fLT53y5fBnSdIt9kcva/p+yD6YNOjGOD3YD3uH9jwI Cc: Aleksandr Rybalko , "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 May 2013 05:59:58 -0000 On Wed, May 22, 2013 at 10:55 PM, Milan Obuch 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.