net: Add sysfs file for port number
authorAmir Vadai <amirv@mellanox.com>
Tue, 25 Feb 2014 16:17:50 +0000 (18:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 20:38:06 +0000 (15:38 -0500)
Add a sysfs file to enable user space to query the device
port number used by a netdevice instance. This is needed for
devices that have multiple ports on the same PCI function.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/net-sysfs.c

Simple merge
Simple merge