From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Subject: Re: [PATCH] mlx4_en: show device's port used Date: Tue, 25 May 2010 09:55:47 -0700 Message-ID: References: <20100525135548.GA12749@mtldesk030.lab.mtl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, netdev@vger.kernel.org, Linux RDMA list , yevgenyp@mellanox.co.il To: Eli Cohen Return-path: Received: from sj-iport-3.cisco.com ([171.71.176.72]:16618 "EHLO sj-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932602Ab0EYQzs (ORCPT ); Tue, 25 May 2010 12:55:48 -0400 In-Reply-To: <20100525135548.GA12749@mtldesk030.lab.mtl.com> (Eli Cohen's message of "Tue, 25 May 2010 16:55:48 +0300") Sender: netdev-owner@vger.kernel.org List-ID: > Add a sysfs file under /sys/class/net/ to show the port number within the > device that this network interface is using. This is needed as ConnectX devices > have two ports and it is useful to know which port the ethernet devices uses. How do other multi-port ethernet devices handle this? Seems that the cleanest way to handle this would be to add a place for drivers to set the port number, and export it to userspace in generic code (so everyone does it the same way). -- Roland Dreier || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html