From: John Fastabend <john.fastabend@gmail.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: John Fastabend <john.r.fastabend@intel.com>,
Narendra K <narendra_k@dell.com>,
stephen@networkplumber.org, netdev@vger.kernel.org
Subject: Re: Generic interface to make physical port number used by a netdevice available to user space
Date: Fri, 07 Jun 2013 10:35:21 -0700 [thread overview]
Message-ID: <51B219D9.2010900@gmail.com> (raw)
In-Reply-To: <1370625678.1903.26.camel@bwh-desktop.uk.level5networks.com>
[...]
> Having looked at the qeth driver now, I think the comment in netdevice.h
> should be changed to state that this is for distinguishing devices that
> share a link-layer address, and the drivers using it for other purposes
> should stop doing so (if that doesn't break userland).
>
Agreed, the qeth driver eluded me, its not in ./drivers/net as you
noted in the other thread.
> [...]
>>> 3. Add a new field 'physport' to 'struct net_device' and export it to sysfs.
>>
>> Probably not we already have two fields that seem ill-defined no reason
>> to add another to the confusion. If you absolutely can't make dev_id or
>> if_port coherent then maybe but I really think one of the above two will
>> work.
>
> I think we should tighten up documentation and implementation of the
> existing fields, but there is still a need for this new one.
>
> One thing that needs to be clearly specified is the scope of the
> physport identifier - the controller, board, physical machine, ... or
> universe. In a VM, controller and board scope are pretty useless as it
> typically can't tell which devices belong to the same controller or
> board anyway. A universally unique identifier is probably not too hard
> to implement as there is likely to be at least one MAC address
> permanently assigned to each physical port.
>
> Ben.
>
OK, sounds reasonable to me a new field should work.
--
John Fastabend Intel Corporation
next prev parent reply other threads:[~2013-06-07 17:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 7:54 Generic interface to make physical port number used by a netdevice available to user space Narendra_K
2013-05-22 16:04 ` Ben Hutchings
2013-05-23 13:27 ` Narendra_K
2013-05-23 16:18 ` Ben Hutchings
2013-05-23 18:33 ` Dan Williams
2013-05-23 18:48 ` Ben Hutchings
2013-05-23 19:05 ` Dan Williams
2013-05-23 19:49 ` Ben Hutchings
2013-05-23 16:34 ` Stephen Hemminger
2013-05-27 13:09 ` Narendra_K
2013-05-31 12:13 ` Narendra_K
2013-06-07 14:59 ` John Fastabend
2013-06-07 17:21 ` Ben Hutchings
2013-06-07 17:35 ` John Fastabend [this message]
2013-06-10 17:54 ` Narendra_K
2013-06-10 18:10 ` Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51B219D9.2010900@gmail.com \
--to=john.fastabend@gmail.com \
--cc=bhutchings@solarflare.com \
--cc=john.r.fastabend@intel.com \
--cc=narendra_k@dell.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.