netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Generic interface to make physical port number used by a netdevice available to user space
@ 2013-05-22  7:54 Narendra_K
  2013-05-22 16:04 ` Ben Hutchings
  2013-05-23 16:34 ` Stephen Hemminger
  0 siblings, 2 replies; 16+ messages in thread
From: Narendra_K @ 2013-05-22  7:54 UTC (permalink / raw)
  To: netdev

Hello,

It is useful to know if network interfaces from NIC partitions 'map to/ use the'
same physical port. For example,  when creating bonding in fault tolerance mode,
if two network interfaces map to/use the same physical port, it might not have the
desired result. This information is not available today in a standard format or
it is not present.  If this information can be made available in a generic  way
to user space, tools such as NetworkManager or Libteam  or Wicked can make smarter
bonding decisions (such as warn users when setting up configurations which will
not have desired effect).

The requirement is to have a generic interface using which kernel/drivers can
provide information/hints to user space about the physical port number used by
a network interface.

While looking for already existing generic facility, 'dev_id' sysfs attribute
seemed relevant. Looking into the sources seemed to indicate that majority of 
the drivers do not set it and it could be interpreted differently.

It would be great to know list's thoughts on  'dev_id' being used as the interface
to make the physical port number information used by netdevice available to user
space or do we need a new sysfs attribute for the same.

Note: I think in the scenario of SRIOV VF devices assigned to guest and being
bonded, additional information would be needed to differentiate the network
controller in the host.  But I suppose it is a different problem than this.

References to related discussions:
1. [PATCH net-next] bnx2x: Add Nic partitioning mode (57712)
http://marc.info/?l=linux-netdev&m=129098288709528&w=2
2. [PATCH net-next] bonding: Support for multi function NIC devices
http://marc.info/?l=linux-netdev&m=134240221118594&w=2

Thank you,

-- 
With regards,
Narendra K
Linux Engineering
Dell Inc.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-06-10 18:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-06-10 17:54             ` Narendra_K
2013-06-10 18:10               ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).