Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932349AbWJFOJI (ORCPT ); Fri, 6 Oct 2006 10:09:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932354AbWJFOJI (ORCPT ); Fri, 6 Oct 2006 10:09:08 -0400 Received: from smtp-out001.kontent.com ([81.88.40.215]:45264 "EHLO smtp-out.kontent.com") by vger.kernel.org with ESMTP id S932349AbWJFOJG (ORCPT ); Fri, 6 Oct 2006 10:09:06 -0400 From: Oliver Neukum To: Pavel Machek , linux-usb-devel@lists.sourceforge.net, David Brownell , Alan Stern , linux-kernel@vger.kernel.org Subject: Re: [linux-usb-devel] error to be returned while suspended Date: Fri, 6 Oct 2006 16:09:45 +0200 User-Agent: KMail/1.8 References: <200610060904.51936.oliver@neukum.org> <20061006112742.GL29353@elf.ucw.cz> In-Reply-To: <20061006112742.GL29353@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610061609.45796.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1066 Lines: 26 Am Freitag, 6. Oktober 2006 13:27 schrieben Sie: > > with being required to down the interfaces to do so. Suspension should > > be as transparent as possible. > > What you want is fairly hard to implement in kernel, and it is not > clear if it is kernel job after all. "Transparent" is nice, but > "simple kernel code" is nice, too. > > If you have very simple&easy&nice&transparent kernel code that can do > what you want, fine; but maybe we want to trade "transparent" for > "KISS". It seems to me that a network driver needs to have the ability to drop packets onto the floor while disconnect() is running. In the case of a disconnection triggered by usbfs a lack of this ability is a race condition. I've done an implementation of kaweth which allows suspending the interface while it is alive. Regards Oliver - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/