From owner-freebsd-net@FreeBSD.ORG Mon Dec 23 19:44:25 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8623B79; Mon, 23 Dec 2013 19:44:25 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA17193A; Mon, 23 Dec 2013 19:44:25 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 53058B98F; Mon, 23 Dec 2013 14:44:22 -0500 (EST) From: John Baldwin To: freebsd-net@freebsd.org Subject: Re: IFF_DRV_OACTIVE handling in *_stop() for intel nic drivers ? Date: Mon, 23 Dec 2013 12:23:56 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201312140008.rBE08tnO062920@mail.karels.net> <20131214012308.GB82745@onelab2.iet.unipi.it> In-Reply-To: <20131214012308.GB82745@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201312231223.56698.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 23 Dec 2013 14:44:24 -0500 (EST) Cc: Jack F Vogel , Adrian Chadd , Luigi Rizzo , Mike Karels , "net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 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, 23 Dec 2013 19:44:25 -0000 On Friday, December 13, 2013 8:23:08 pm Luigi Rizzo wrote: > On Fri, Dec 13, 2013 at 06:08:55PM -0600, Mike Karels wrote: > > > ... OACTIVE by design is racy. We should just not be using it in newer drivers. > > > > > I think the correct thing to do is to just plain ignore setting it ever. > > > > I agree; OACTIVE is totally obsolete for drivers that use if_transmit, > > and not particularly useful for other drivers. It might be time to remove > > OACTIVE, or define it to be 0. (And I added the original IFF_OACTIVE). > > ok thanks for the clarification In particular, it is useless (and AFAIK ignored) if you are using if_transmit. I've fixed it in igb before, has it crept back in? It should only be used in drivers using if_start() when the ifq is full, and cleared when a tx completion interrupt fires. -- John Baldwin