IB/core: Add link layer type information to sysfs
commit8ad330a002ffbc422f32a77398666832f0df8a3d
authorEli Cohen <eli@mellanox.co.il>
Fri, 22 Oct 2010 12:32:05 +0000 (22 14:32 +0200)
committerRoland Dreier <rolandd@cisco.com>
Mon, 25 Oct 2010 17:20:39 +0000 (25 10:20 -0700)
treef2748218f63365a60d39f843dd21a052cba70a7d
parent4c3eb3ca13966508bcb64f39dcdef48be22f1731
IB/core: Add link layer type information to sysfs

Since an IB transport port may use either IB or Ethernet as its link layer,
add the file /sys/class/infiniband/<device>/ports/<port_num>/link_layer to
show the link layer for the port.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/sysfs.c