[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150531.173219.1881314735933860028.davem@davemloft.net>
Date: Sun, 31 May 2015 17:32:19 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: sshah@...arflare.com
Cc: netdev@...r.kernel.org, linux-net-drivers@...arflare.com
Subject: Re: [PATCH net-next 01/14] sfc: Add sysfs entry for physical port
From: Shradha Shah <sshah@...arflare.com>
Date: Fri, 29 May 2015 11:01:06 +0100
> In the case where we have multiple functions (PFs and VFs), this
> sysfs entry is useful to identify the physical port corresponding
> to the function we are interested in.
>
> Signed-off-by: Shradha Shah <sshah@...arflare.com>
Please don't invent your own stuff for this, you are not the only driver
in the world that might want to export this kind of information.
Set netdev->dev_port properly and it'll already be exported for you
using portable, standard interfaces, that a user can use with any
device in the world, not just your's.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists