mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-25 19:41:34 +00:00
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 <galpress@amazon.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
b60ed9a372
commit
7087f7c0ce
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user