From: Keir Fraser Subject: Re: [5/11] [NET] back: Replace netif->active with netif_carrier_ok Date: Thu, 27 Jul 2006 14:11:01 +0100 Message-ID: <7608d0845e96fb8a289c3b814b6a8467@cl.cam.ac.uk> References: <20060707141634.GA12031@gondor.apana.org.au> <20060707141902.GF12031@gondor.apana.org.au> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060707141902.GF12031@gondor.apana.org.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Herbert Xu Cc: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On 7 Jul 2006, at 15:19, Herbert Xu wrote: > [NET] back: Replace netif->active with netif_carrier_ok > > The connection status to the frontend can be represented using > netif_carrier_ok instead of netif->active. As a result, we delay > the construction of the dev qdisc until the carrier comes on. This > is a prerequisite for adding a tx queue. > > Signed-off-by: Herbert Xu netif->active is also conditional on whether or not the interface is open ('running'). So it's not as good a fit for netif_carrier as the status field you similarly replaced in netfront. Perhaps you could replace the netback status field (CONNECTED/DISCONNECTED) instead? I think the extra value DISCONNECTING is not really necessary any more, so it should map onto the boolean netif_carrier okay. Then ->active could also potentially be removed. It would correspond to netif_running&&netif_carrier_ok. -- Keir