netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] rdma: Update node type strings
@ 2019-05-15  6:58 Gal Pressman
  2019-05-19 15:26 ` Gal Pressman
  0 siblings, 1 reply; 2+ messages in thread
From: Gal Pressman @ 2019-05-15  6:58 UTC (permalink / raw)
  To: netdev; +Cc: Leon Romanovsky, Gal Pressman

Fix typo in usnic_udp node type and add a string for the unspecified
node type.

Signed-off-by: Gal Pressman <galpress@amazon.com>
---
 rdma/dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rdma/dev.c b/rdma/dev.c
index 339625202200..904836221c1b 100644
--- a/rdma/dev.c
+++ b/rdma/dev.c
@@ -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";
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iproute2] rdma: Update node type strings
  2019-05-15  6:58 [PATCH iproute2] rdma: Update node type strings Gal Pressman
@ 2019-05-19 15:26 ` Gal Pressman
  0 siblings, 0 replies; 2+ messages in thread
From: Gal Pressman @ 2019-05-19 15:26 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, Leon Romanovsky

On 15/05/2019 9:58, Gal Pressman wrote:
> Fix typo in usnic_udp node type and add a string for the unspecified
> node type.
> 
> Signed-off-by: Gal Pressman <galpress@amazon.com>
> ---
>  rdma/dev.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/rdma/dev.c b/rdma/dev.c
> index 339625202200..904836221c1b 100644
> --- a/rdma/dev.c
> +++ b/rdma/dev.c
> @@ -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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-19 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15  6:58 [PATCH iproute2] rdma: Update node type strings Gal Pressman
2019-05-19 15:26 ` Gal Pressman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).