Skip to contentSkip to conversation

infiniband-diags: Initial changes for extended speed support in libibmad

PATCH Applied Hal Rosenstock 2 participants 2 messages Jul 7, 2011 – Jul 8, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 infiniband-diags: Initial changes for extended speed support in libibmad

Need larger buffer for mad_dump_portinfo due to additional extended speed fields

Signed-off-by Hal Rosenstock

---

src/saquery.c +1 -1
index 7933fec..53ab1b6 100644
@@ -419,7 +419,7 @@ static void dump_portinfo_record(void *data)
 
 static void dump_one_portinfo_record(void *data)
 {
-	char buf[2048], buf2[4096];
+	char buf[2300], buf2[4096];
 	ib_portinfo_record_t *pir = data;
 	ib_port_info_t *pi = &pir->port_info;
 
src/smpquery.c +1 -1
index a46bb18..65bb65c 100644
@@ -131,7 +131,7 @@ static char *node_info(ib_portid_t * dest, char **argv, int argc)
 
 static char *port_info(ib_portid_t * dest, char **argv, int argc)
 {
-	char buf[2048];
+	char buf[2300];
 	char data[IB_SMP_DATA_SIZE] = { 0 };
 	int portnum = 0;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · On Thu, 7 Jul 2011 09:50:12 -0700 Hal Rosenstock…

Need larger buffer for mad_dump_portinfo due to additional extended speed fields

Signed-off-by Hal Rosenstock

Thanks, applied,
Ira

Quoted 27 lines

---

src/saquery.c +1 -1
index 7933fec..53ab1b6 100644
@@ -419,7 +419,7 @@ static void dump_portinfo_record(void *data)
 
 static void dump_one_portinfo_record(void *data)
 {
-	char buf[2048], buf2[4096];
+	char buf[2300], buf2[4096];
 	ib_portinfo_record_t *pir = data;
 	ib_port_info_t *pi = &pir->port_info;
 
src/smpquery.c +1 -1
index a46bb18..65bb65c 100644
@@ -131,7 +131,7 @@ static char *node_info(ib_portid_t * dest, char **argv, int argc)
 
 static char *port_info(ib_portid_t * dest, char **argv, int argc)
 {
-	char buf[2048];
+	char buf[2300];
 	char data[IB_SMP_DATA_SIZE] = { 0 };
 	int portnum = 0;
 
Signature · 9 lines
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html