From owner-freebsd-net@FreeBSD.ORG Fri Jul 22 19:42:27 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 46EB4106566C for ; Fri, 22 Jul 2011 19:42:27 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1F8478FC14 for ; Fri, 22 Jul 2011 19:42:26 +0000 (UTC) Received: by pzk5 with SMTP id 5so12169882pzk.17 for ; Fri, 22 Jul 2011 12:42:26 -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:content-transfer-encoding; bh=QjHzYptCOEDVyonqe/PBKkFedQ5B+uYG96jy0ymmy1U=; b=wqstfn/tIEbVGJiH9yRxutfk/hHT+jumhLSAdb6RAZk81mZqUnchdMQ5EQOfHVwKWK 6y0w0yZRRc+T36hMjaN5/Q+Qs9WNuRmCsmNKXGMnmy/cCEBWZkyGhIzYdsHI6wp9sPlw 30kbAcItmm1jqxB6gS1AcKO6/gPe68ZX7fe9s= MIME-Version: 1.0 Received: by 10.68.16.197 with SMTP id i5mr2855169pbd.410.1311363746533; Fri, 22 Jul 2011 12:42:26 -0700 (PDT) Received: by 10.68.56.8 with HTTP; Fri, 22 Jul 2011 12:42:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 22 Jul 2011 15:42:26 -0400 Message-ID: From: Arnaud Lacombe To: Jack Vogel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Fri, 22 Jul 2011 19:42:27 -0000 Hi, On Fri, Jul 22, 2011 at 12:32 PM, Jack Vogel wrote: > Correct, until you up the interface there are no interrupts enabled so yo= u > don't detect link change. > > Not a bug, linux is a different kettle of fish... > As we speak about this. Is there a reason for em(4) to have a soft-check in em_handle_link() to only update the link status if IFF_DRV_RUNNING is set ? If so, what is it ? Thanks, - Arnaud > Jack > > > On Fri, Jul 22, 2011 at 8:08 AM, Ryan Stone wrote: > >> I notice that the interface not up in your test. =A0If you ifconfig it >> up does it detect that it has lost link? =A0The driver isn't really >> running anymore when you bring the link down -- interrupts are >> disabled, for example, so it will never get a link down interrupt. >> _______________________________________________ >> 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" >> > _______________________________________________ > 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" >