mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 22:15:13 +08:00
rdma: Add driver QP type string
RDMA resource tracker now tracks driver QPs as well, add driver QP type string to qp_types_to_str function. Signed-off-by: Gal Pressman <galpress@amazon.com> Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
74ddde9b5f
commit
39307384ce
@ -148,9 +148,11 @@ const char *qp_types_to_str(uint8_t idx)
|
||||
"UC", "UD", "RAW_IPV6",
|
||||
"RAW_ETHERTYPE",
|
||||
"UNKNOWN", "RAW_PACKET",
|
||||
"XRC_INI", "XRC_TGT" };
|
||||
"XRC_INI", "XRC_TGT",
|
||||
[0xFF] = "DRIVER",
|
||||
};
|
||||
|
||||
if (idx < ARRAY_SIZE(qp_types_str))
|
||||
if (idx < ARRAY_SIZE(qp_types_str) && qp_types_str[idx])
|
||||
return qp_types_str[idx];
|
||||
return "UNKNOWN";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user