public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH infiniband-diags] infiniband-diags: Eliminate unneeded clean_nodedesc calls
@ 2013-07-15 14:32 Hal Rosenstock
       [not found] ` <51E40808.4040907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2013-07-15 14:32 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)


in ibroute and dump_fts
clean_nodedesc is called if needed within remap_node_name

Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/src/dump_fts.c b/src/dump_fts.c
index 89f0dce..5383c9d 100644
--- a/src/dump_fts.c
+++ b/src/dump_fts.c
@@ -154,7 +154,7 @@ void dump_multicast_tables(ibnd_node_t * node, unsigned startlid,
 		endlid = IB_MAX_MCAST_LID;
 	}
 
-	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
+	mapnd = remap_node_name(node_name_map, nodeguid, nd);
 
 	printf("Multicast mlids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
 	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
@@ -289,7 +289,7 @@ int dump_lid(char *str, int str_len, int lid, int valid,
 		*last_port_lid = baselid + (1 << lmc) - 1;
 	}
 
-	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
+	mapnd = remap_node_name(node_name_map, nodeguid, nd);
  
 	rc = snprintf(str, str_len, ": (%s portguid %s: '%s')",
 		      mad_dump_val(IB_NODE_TYPE_F, ntype, sizeof ntype,
@@ -331,7 +331,7 @@ void dump_unicast_tables(ibnd_node_t * node, int startlid, int endlid,
 		endlid = IB_MAX_UCAST_LID;
 	}
 
-	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
+	mapnd = remap_node_name(node_name_map, nodeguid, nd);
 
 	printf("Unicast lids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
 	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
diff --git a/src/ibroute.c b/src/ibroute.c
index d4827c9..350a557 100644
--- a/src/ibroute.c
+++ b/src/ibroute.c
@@ -178,7 +178,7 @@ char *dump_multicast_tables(ib_portid_t * portid, unsigned startlid,
 		endlid = IB_MAX_MCAST_LID;
 	}
 
-	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
+	mapnd = remap_node_name(node_name_map, nodeguid, nd);
 
 	printf("Multicast mlids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
 	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
@@ -309,7 +309,7 @@ int dump_lid(char *str, int strlen, int lid, int valid)
 		last_port_lid = baselid + (1 << lmc) - 1;
 	}
 
-	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
+	mapnd = remap_node_name(node_name_map, nodeguid, nd);
  
 	rc = snprintf(str, strlen, ": (%s portguid %s: '%s')",
 		      mad_dump_val(IB_NODE_TYPE_F, ntype, sizeof ntype,
@@ -348,7 +348,7 @@ char *dump_unicast_tables(ib_portid_t * portid, int startlid, int endlid)
 		endlid = IB_MAX_UCAST_LID;
 	}
 
-	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
+	mapnd = remap_node_name(node_name_map, nodeguid, nd);
 
 	printf("Unicast lids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
 	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH infiniband-diags] infiniband-diags: Eliminate unneeded clean_nodedesc calls
       [not found] ` <51E40808.4040907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2013-07-18 22:14   ` Ira Weiny
  0 siblings, 0 replies; 2+ messages in thread
From: Ira Weiny @ 2013-07-18 22:14 UTC (permalink / raw)
  To: Hal Rosenstock
  Cc: Ira Weiny,
	linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)

On Mon, 15 Jul 2013 10:32:40 -0400
Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:

> 
> in ibroute and dump_fts
> clean_nodedesc is called if needed within remap_node_name
> 
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

Thanks, accepted,
Ira

> ---
> diff --git a/src/dump_fts.c b/src/dump_fts.c
> index 89f0dce..5383c9d 100644
> --- a/src/dump_fts.c
> +++ b/src/dump_fts.c
> @@ -154,7 +154,7 @@ void dump_multicast_tables(ibnd_node_t * node, unsigned startlid,
>  		endlid = IB_MAX_MCAST_LID;
>  	}
>  
> -	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
> +	mapnd = remap_node_name(node_name_map, nodeguid, nd);
>  
>  	printf("Multicast mlids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
>  	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
> @@ -289,7 +289,7 @@ int dump_lid(char *str, int str_len, int lid, int valid,
>  		*last_port_lid = baselid + (1 << lmc) - 1;
>  	}
>  
> -	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
> +	mapnd = remap_node_name(node_name_map, nodeguid, nd);
>   
>  	rc = snprintf(str, str_len, ": (%s portguid %s: '%s')",
>  		      mad_dump_val(IB_NODE_TYPE_F, ntype, sizeof ntype,
> @@ -331,7 +331,7 @@ void dump_unicast_tables(ibnd_node_t * node, int startlid, int endlid,
>  		endlid = IB_MAX_UCAST_LID;
>  	}
>  
> -	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
> +	mapnd = remap_node_name(node_name_map, nodeguid, nd);
>  
>  	printf("Unicast lids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
>  	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
> diff --git a/src/ibroute.c b/src/ibroute.c
> index d4827c9..350a557 100644
> --- a/src/ibroute.c
> +++ b/src/ibroute.c
> @@ -178,7 +178,7 @@ char *dump_multicast_tables(ib_portid_t * portid, unsigned startlid,
>  		endlid = IB_MAX_MCAST_LID;
>  	}
>  
> -	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
> +	mapnd = remap_node_name(node_name_map, nodeguid, nd);
>  
>  	printf("Multicast mlids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
>  	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,
> @@ -309,7 +309,7 @@ int dump_lid(char *str, int strlen, int lid, int valid)
>  		last_port_lid = baselid + (1 << lmc) - 1;
>  	}
>  
> -	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
> +	mapnd = remap_node_name(node_name_map, nodeguid, nd);
>   
>  	rc = snprintf(str, strlen, ": (%s portguid %s: '%s')",
>  		      mad_dump_val(IB_NODE_TYPE_F, ntype, sizeof ntype,
> @@ -348,7 +348,7 @@ char *dump_unicast_tables(ib_portid_t * portid, int startlid, int endlid)
>  		endlid = IB_MAX_UCAST_LID;
>  	}
>  
> -	mapnd = remap_node_name(node_name_map, nodeguid, clean_nodedesc(nd));
> +	mapnd = remap_node_name(node_name_map, nodeguid, nd);
>  
>  	printf("Unicast lids [0x%x-0x%x] of switch %s guid 0x%016" PRIx64
>  	       " (%s):\n", startlid, endlid, portid2str(portid), nodeguid,


-- 
Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-07-18 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 14:32 [PATCH infiniband-diags] infiniband-diags: Eliminate unneeded clean_nodedesc calls Hal Rosenstock
     [not found] ` <51E40808.4040907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-07-18 22:14   ` Ira Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox