Skip to contentSkip to conversation

infiniband-diags/ibstatus: add link_layer for RoCEE support

PATCH Applied Yevgeny Kliteynik 2 participants 2 messages Mar 9, 2010 – Mar 23, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

RoCEE introduces new file in sysfs: "link_layer". Assume IB if the file doesn't exist (driver w/o RoCEE support).

---
 infiniband-diags/scripts/ibstatus |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
infiniband-diags/scripts/ibstatus +1 -0
index 87fbb0c..f7fbbc2 100755
@@ -31,6 +31,7 @@ port_status() {
 	echo "	state:		" `[ -r $port_dir/state ] && cat $port_dir/state || echo unknown`
 	echo "	phys state:	" `[ -r $port_dir/phys_state ] && cat $port_dir/phys_state || echo unknown`
 	echo "	rate:		" `[ -r $port_dir/rate ] && cat $port_dir/rate || echo unknown`
+	echo "	link_layer:	" `[ -r $port_dir/link_layer ] && cat $port_dir/link_layer || echo IB`
 	echo
 }
 
Signature · 6 lines
1.5.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4B9624F2.1000507-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org