Skip to contentSkip to conversation

rdma: Update node type strings

PATCH In review Gal Pressman 1 participant 2 messages May 15, 2019 – May 19, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rdma: Update node type strings

Fix typo in usnic_udp node type and add a string for the unspecified node type.

---
 rdma/dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rdma/dev.c +2 -1
index 339625202200..904836221c1b 100644
@@ -170,7 +170,8 @@ static const char *node_type_to_str(uint8_t node_type)
 	static const char * const node_type_str[] = { "unknown", "ca",
 						      "switch", "router",
 						      "rnic", "usnic",
-						      "usnic_dp" };
+						      "usnic_udp",
+						      "unspecified" };
 	if (node_type < ARRAY_SIZE(node_type_str))
 		return node_type_str[node_type];
 	return "unknown";
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Gal Pressman

Fix typo in usnic_udp node type and add a string for the unspecified node type.

---
 rdma/dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
rdma/dev.c +0 -0
index 339625202200..904836221c1b 100644

rdma/dev.c static const char *node_type_to_str(uint8_t node_type) · line 177

Quoted 9 lines
rdma/dev.c +2 -1
@@ -170,7 +170,8 @@ static const char *node_type_to_str(uint8_t node_type)
 	static const char * const node_type_str[] = { "unknown", "ca",
 						      "switch", "router",
 						      "rnic", "usnic",
-						      "usnic_dp" };
+						      "usnic_udp",
+						      "unspecified" };
 	if (node_type < ARRAY_SIZE(node_type_str))
 		return node_type_str[node_type];
 	return "unknown";

Sorry, forgot to add Stephen.