From owner-freebsd-current@FreeBSD.ORG Fri Jan 27 04:10:52 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F3CB16A420; Fri, 27 Jan 2006 04:10:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F93543D45; Fri, 27 Jan 2006 04:10:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k0R49O7C058073; Thu, 26 Jan 2006 21:09:24 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 26 Jan 2006 21:09:57 -0700 (MST) Message-Id: <20060126.210957.112636931.imp@bsdimp.com> To: rwatson@freebsd.org From: "M. Warner Losh" In-Reply-To: <20060125104901.X70912@fledge.watson.org> References: <20060124.231504.74682748.sthaug@nethelp.no> <20060124223539.GH69162@funkthat.com> <20060125104901.X70912@fledge.watson.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 26 Jan 2006 21:09:26 -0700 (MST) Cc: rizzo@icir.org, gurney_j@resnet.uoregon.edu, julian@elischer.org, sthaug@nethelp.no, current@freebsd.org Subject: Re: if_flags usage etc. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 04:10:52 -0000 In message: <20060125104901.X70912@fledge.watson.org> Robert Watson writes: : : On Tue, 24 Jan 2006, John-Mark Gurney wrote: : : > sthaug@nethelp.no wrote this message on Tue, Jan 24, 2006 at 23:15 +0100: : >>> We should probably better document the interface "interface". if we are : >>> going to (as Sam suggests) : >>> do some cleanups we might as well consider what other changes should be : >>> put in at the same time. : >> : >> A couple of other suggestions: : >> : >> - For software routers (quagga, zebra etc.) it would be very nice to : >> have "link up" / "link down" notifications to the routing process(es). : > : > already supported, either through kqueue, routing socket, or devd (I : > believe)... : : However, I believe some interface drivers don't generate these events. : Drivers not supporting a specific event delivered by an interrupt probably : need to learn to poll for state changes so that they can generate an event. Most of the problem is that mii_tick doesn't run when the interface is not UP. This means they are blind to interface changes. Really old drivers, without mii support, do need to poll for link changes. Really really old hardware, like ne-2000, can't even poll for link changes. You know the link is up/down based on errors or success of last packet... Warner