From owner-freebsd-net@FreeBSD.ORG Mon Jul 25 17:05:15 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD426106566B for ; Mon, 25 Jul 2011 17:05:15 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 964D98FC15 for ; Mon, 25 Jul 2011 17:05:15 +0000 (UTC) Received: by vws18 with SMTP id 18so4152498vws.13 for ; Mon, 25 Jul 2011 10:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JjKirhdiDFGjHwInm4xmfAFl6xjzju5zhCi7S3J4VfI=; b=nkQ+13RxEmjJknmwHNe+uAjkok/sIQKG6DWdQwJBjMaX4Mi2UoFHNxuMlrifAFJPyR WELf1zTHN67FgBQBnJT5YFyXtmUjijploP0ZRZfthJn2cThyxdhvee86LQkBoaU+Qa6k h25Rk7GN8WM5+GW9nQQbLjJnGJE9TS8LjGigk= MIME-Version: 1.0 Received: by 10.52.22.201 with SMTP id g9mr4455488vdf.331.1311613514072; Mon, 25 Jul 2011 10:05:14 -0700 (PDT) Received: by 10.52.187.66 with HTTP; Mon, 25 Jul 2011 10:05:13 -0700 (PDT) In-Reply-To: <1311607225.4301.69.camel@deadeye> References: <1311607225.4301.69.camel@deadeye> Date: Mon, 25 Jul 2011 10:05:13 -0700 Message-ID: From: Jack Vogel To: Ben Hutchings Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, Ivan Alexandrovich , Ryan Stone Subject: Re: Ethernet link status on i82576 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 17:05:15 -0000 Ya, well that has some odd side effects also, for instance, the phy will in fact bring link up just via hardware initialization, so the link light will be on if you look at the port on the card, its this fact that is discovered when the driver attach routine is run, but as I said, no interrupts so no changes once that first detection happens. If I were just to say its down until init happens someone would inevitably complain about the disagreement between those :) On the 10G adapters the physical link also does not come up until init runs so they are a bit more consistent. Jack On Mon, Jul 25, 2011 at 8:20 AM, Ben Hutchings wrote: > On Mon, 2011-07-25 at 16:38 +0700, Ivan Alexandrovich wrote: > > On Fri, 22 Jul 2011 11:08:18 -0400 Ryan Stone wrote: > > > I notice that the interface not up in your test. If you ifconfig it > > > up does it detect that it has lost link? > > > > Thank you. When the interface is "up" driver works as expected. > > It's common behaviour that the physical link status is not (easily) > available while the interface is down. In Linux we resolved that when > an interface is down its link state is always reported as down (where we > have to give a boolean answer). > > Ben. > > -- > Ben Hutchings, Senior Software Engineer, Solarflare Communications > Not speaking for my employer; that's the marketing department's job. > They asked us to note that Solarflare product names are trademarked. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >