]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
rdma: Update node type strings
authorGal Pressman <galpress@amazon.com>
Wed, 15 May 2019 06:58:36 +0000 (09:58 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 18 May 2019 13:38:35 +0000 (06:38 -0700)
Fix typo in usnic_udp node type and add a string for the unspecified
node type.

Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/dev.c

index 3396252022002c41e0082bb417747d55d34f5afa..904836221c1be3121f1dfeef7f2d43d0977d5416 100644 (file)
@@ -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";