rdma: Add driver QP type string
Subsystems (3)
PATCH 1/1 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.
--- rdma/res.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
rdma/res.c +4 -2
@@ -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" ; }
Signature · 1 line
2.22.0
Quoted 8 lines · Gal Pressman
RDMA resource tracker now tracks driver QPs as well, add driver QP type string to
qp_types_to_strfunction.Signed-off-by Gal Pressman <[email protected]>--- rdma/res.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Thanks,
Quoted 2 lines · Gal Pressman
RDMA resource tracker now tracks driver QPs as well, add driver QP type string to
qp_types_to_strfunction.
"now" means which kernel release? Leon: should this be in master or -next?
Quoted 25 lines
Signed-off-by Gal Pressman <[email protected]>--- rdma/res.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)rdma/res.c +4
-2@@ -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" ; }
Quoted 5 lines · David Ahern
Quoted 2 lines · Gal Pressman
RDMA resource tracker now tracks driver QPs as well, add driver QP type string to
qp_types_to_strfunction."now" means which kernel release? Leon: should this be in master or -next?
Now means the patch is merged to RDMA's for-rc branch (5.3).
Quoted 8 lines · Gal Pressman
Quoted 5 lines · David Ahern
Quoted 2 lines · Gal Pressman
RDMA resource tracker now tracks driver QPs as well, add driver QP type string to
qp_types_to_strfunction."now" means which kernel release? Leon: should this be in master or -next?
Now means the patch is merged to RDMA's for-rc branch (5.3).
David,
I think that it is better to apply this patch to iproute2-rc just to be on the same page with kernel patch.
Thanks
David Ahern
AppliedQuoted 8 lines · Gal Pressman
RDMA resource tracker now tracks driver QPs as well, add driver QP type string to
qp_types_to_strfunction.Signed-off-by Gal Pressman <[email protected]>--- rdma/res.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
applied to iproute2-next. Thanks