Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945953AbXBPPy1 (ORCPT ); Fri, 16 Feb 2007 10:54:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1945955AbXBPPy1 (ORCPT ); Fri, 16 Feb 2007 10:54:27 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:33930 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945953AbXBPPy0 (ORCPT ); Fri, 16 Feb 2007 10:54:26 -0500 Subject: Re: [PATCH 2.6.21-rc1] ehea: dynamic add / remove port From: John Rose To: Jan-Bernd Themann Cc: Jeff Garzik , Christoph Raisch , Jan-Bernd Themann , linux-kernel , linux-ppc , Marcus Eder , Thomas Klein , stefan.roscher@de.ibm.com, netdev , Nathan Fontenot In-Reply-To: <200702161606.52789.ossthema@de.ibm.com> References: <200702141536.28665.ossthema@de.ibm.com> <1171491906.30473.3.camel@sinatra.austin.ibm.com> <200702161606.52789.ossthema@de.ibm.com> Content-Type: text/plain Message-Id: <1171641089.9442.8.camel@sinatra.austin.ibm.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 16 Feb 2007 09:51:29 -0600 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 42 Hi- Sounds good. A couple of questions/comments: > I think it is not necessary to have a special entry/kobject for each logical > port. I suggest we use SET_NETDEV_DEV to create links to all ethernet devices > that represent each a logical port. This should be in sync with all other > ethernet drivers. Port attributes like the "logical port id" that might be > need by the userspace application can be added to the net:ethX entry > (link created with SET_NETDEV_DEV) as additional attributes. As we develop the userspace tool, we are finding a need to know the following for each logical port: 1) the linux interface/device (a symlink would do this) 2) the logical port number - were you suggesting communicating this through the name of the symlink, or in the directory of the symlink target? 3) the open firmware path for the logical port. This is typically communicated through a sysfs attribute file "devspec", but we can't do this without a new kobject for the port. > > > > Second, the probe and remove functions do not communicate whether an add > > or remove was successful. Combine this with the lack of port > > information in the adapter sysfs directory, and the userspace tool has > > no way of verifying a dynamic add/remove. > > True. I suggest we return error codes (-EIO / -EINVAL) in case the adding > or removing of ports fails. This is possible as we know instantly if the > operation failed or not. It is a synchronus operation. Sounds good. Thanks! John - 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/