From owner-freebsd-net@FreeBSD.ORG Sun Apr 11 02:31:25 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1561A16A4CF; Sun, 11 Apr 2004 02:31:25 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id E08FE43D2F; Sun, 11 Apr 2004 02:31:24 -0700 (PDT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i3B9VOgd084179; Sun, 11 Apr 2004 02:31:24 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i3B9VO8f084178; Sun, 11 Apr 2004 02:31:24 -0700 (PDT) (envelope-from rizzo) Date: Sun, 11 Apr 2004 02:31:24 -0700 From: Luigi Rizzo To: Ruslan Ermilov Message-ID: <20040411023124.A83988@xorpc.icir.org> References: <20040410222112.GA23046@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040410222112.GA23046@ip.net.ua>; from ru@freebsd.org on Sun, Apr 11, 2004 at 01:21:12AM +0300 cc: net@freebsd.org Subject: Re: Per-interface polling(4) status X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2004 09:31:25 -0000 more or less i am fine with your proposed change. I believe you could add something to state the capability of the hw/driver (polling-capable, like checksum-offloading). For capabilities such as checksum offloading, 'xl' reports them as 'options' rather than 'flags', but other capabilities such as MULTICAST and SIMPLEX are instead reported as 'flags' (well you could think of MULTICAST as a capability that is always enabled so it makes sense to report it as a 'flag'). Actual settings (PROMISC, UP, POLLING, NOARP) are always reported as flags. I'd love if we could sort out this confusion and have capabilities clearly marked/reported in some ifconfig field (e.g. "options"). POLA would suggest to set IFF_POLLING by default on all drivers which support it. You still need the global sysctl to enable it. Finally, while you are at it (and before we branch 6.0), maybe you could store the 'IFF_CANTCHANGE' flags in a separate place from user-configured ones, so one wouldn't have to apply the mask all the times. cheers luigi On Sun, Apr 11, 2004 at 01:21:12AM +0300, Ruslan Ermilov wrote: > Dear networkers, > > Like I mumbled in another email, I've started working on a small > project that (when done) will allow for a per-interface polling(4) > status to be changed in run-time. Attached is a proof of the > concept patch, that currently has support for the dc(4) driver > only (basically because I have this card plugged into my notebook).