rdma: Update node type strings
Subsystems (2)
PATCH 1/1 rdma: Update node type strings
Fix typo in usnic_udp node type and add a string for the unspecified node type.
Signed-off-by Gal Pressman <[email protected]>
--- rdma/dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
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" ;
Signature · 1 line
2.7.4
Quoted 14 lines · Gal Pressman
Fix typo in
usnic_udpnode type and add a string for the unspecified node type.Signed-off-by Gal Pressman <[email protected]>--- rdma/dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)rdma/dev.c +0
-0
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.