* [PATCH] infiniband-diags/saquery: Add extended link speed support for PortInfoRecord queries
@ 2011-08-16 0:18 Hal Rosenstock
[not found] ` <4E49B76B.8010403-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2011-08-16 0:18 UTC (permalink / raw)
To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/man/saquery.8 b/man/saquery.8
index 4a3102d..56fbbee 100644
--- a/man/saquery.8
+++ b/man/saquery.8
@@ -1,4 +1,4 @@
-.TH SAQUERY 8 "March 28, 2010" "OpenIB" "OpenIB Diagnostics"
+.TH SAQUERY 8 "March 14, 2011" "OpenIB" "OpenIB Diagnostics"
.SH NAME
saquery \- query InfiniBand subnet administration attributes
@@ -106,7 +106,7 @@ options.
Supported query names (and aliases):
ClassPortInfo (CPI)
NodeRecord (NR) [lid]
- PortInfoRecord (PIR) [[lid]/[port]]
+ PortInfoRecord (PIR) [[lid]/[port]/[options]]
SL2VLTableRecord (SL2VL) [[lid]/[in_port]/[out_port]]
PKeyTableRecord (PKTR) [[lid]/[port]/[block]]
VLArbitrationTableRecord (VLAR) [[lid]/[port]/[block]]
diff --git a/src/saquery.c b/src/saquery.c
index f82772f..bdf5e9a 100644
--- a/src/saquery.c
+++ b/src/saquery.c
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2006,2007 The Regents of the University of California.
* Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
- * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
+ * Copyright (c) 2002-2011 Mellanox Technologies LTD. All rights reserved.
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
* Copyright (c) 2009 HNR Consulting. All rights reserved.
*
@@ -1074,14 +1074,15 @@ static int query_portinfo_records(const struct query_cmd *q,
{
ib_portinfo_record_t pir;
ib_net64_t comp_mask = 0;
- int lid = 0, port = -1;
+ int lid = 0, port = -1, options = -1;
if (argc > 0)
- parse_lid_and_ports(h, argv[0], &lid, &port, NULL);
+ parse_lid_and_ports(h, argv[0], &lid, &port, &options);
memset(&pir, 0, sizeof(pir));
CHECK_AND_SET_VAL(lid, 16, 0, pir.lid, PIR, LID);
CHECK_AND_SET_VAL(port, 8, -1, pir.port_num, PIR, PORTNUM);
+ CHECK_AND_SET_VAL(options, 8, -1, pir.options, PIR, OPTIONS);
return get_and_dump_any_records(h, IB_SA_ATTR_PORTINFORECORD, 0,
comp_mask, &pir, 0,
@@ -1284,7 +1285,7 @@ static const struct query_cmd query_cmds[] = {
{"NodeRecord", "NR", IB_SA_ATTR_NODERECORD,
"[lid]", query_node_records},
{"PortInfoRecord", "PIR", IB_SA_ATTR_PORTINFORECORD,
- "[[lid]/[port]]", query_portinfo_records},
+ "[[lid]/[port]/[options]]", query_portinfo_records},
{"SL2VLTableRecord", "SL2VL", IB_SA_ATTR_SL2VLTABLERECORD,
"[[lid]/[in_port]/[out_port]]", query_sl2vl_records},
{"PKeyTableRecord", "PKTR", IB_SA_ATTR_PKEYTABLERECORD,
--
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[parent not found: <4E49B76B.8010403-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>]
* Re: [PATCH] infiniband-diags/saquery: Add extended link speed support for PortInfoRecord queries [not found] ` <4E49B76B.8010403-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> @ 2011-08-18 18:22 ` Ira Weiny 0 siblings, 0 replies; 2+ messages in thread From: Ira Weiny @ 2011-08-18 18:22 UTC (permalink / raw) To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Mon, 15 Aug 2011 17:18:51 -0700 Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote: > > Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Thanks applied, Ira > --- > diff --git a/man/saquery.8 b/man/saquery.8 > index 4a3102d..56fbbee 100644 > --- a/man/saquery.8 > +++ b/man/saquery.8 > @@ -1,4 +1,4 @@ > -.TH SAQUERY 8 "March 28, 2010" "OpenIB" "OpenIB Diagnostics" > +.TH SAQUERY 8 "March 14, 2011" "OpenIB" "OpenIB Diagnostics" > > .SH NAME > saquery \- query InfiniBand subnet administration attributes > @@ -106,7 +106,7 @@ options. > Supported query names (and aliases): > ClassPortInfo (CPI) > NodeRecord (NR) [lid] > - PortInfoRecord (PIR) [[lid]/[port]] > + PortInfoRecord (PIR) [[lid]/[port]/[options]] > SL2VLTableRecord (SL2VL) [[lid]/[in_port]/[out_port]] > PKeyTableRecord (PKTR) [[lid]/[port]/[block]] > VLArbitrationTableRecord (VLAR) [[lid]/[port]/[block]] > diff --git a/src/saquery.c b/src/saquery.c > index f82772f..bdf5e9a 100644 > --- a/src/saquery.c > +++ b/src/saquery.c > @@ -1,7 +1,7 @@ > /* > * Copyright (c) 2006,2007 The Regents of the University of California. > * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved. > - * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved. > + * Copyright (c) 2002-2011 Mellanox Technologies LTD. All rights reserved. > * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. > * Copyright (c) 2009 HNR Consulting. All rights reserved. > * > @@ -1074,14 +1074,15 @@ static int query_portinfo_records(const struct query_cmd *q, > { > ib_portinfo_record_t pir; > ib_net64_t comp_mask = 0; > - int lid = 0, port = -1; > + int lid = 0, port = -1, options = -1; > > if (argc > 0) > - parse_lid_and_ports(h, argv[0], &lid, &port, NULL); > + parse_lid_and_ports(h, argv[0], &lid, &port, &options); > > memset(&pir, 0, sizeof(pir)); > CHECK_AND_SET_VAL(lid, 16, 0, pir.lid, PIR, LID); > CHECK_AND_SET_VAL(port, 8, -1, pir.port_num, PIR, PORTNUM); > + CHECK_AND_SET_VAL(options, 8, -1, pir.options, PIR, OPTIONS); > > return get_and_dump_any_records(h, IB_SA_ATTR_PORTINFORECORD, 0, > comp_mask, &pir, 0, > @@ -1284,7 +1285,7 @@ static const struct query_cmd query_cmds[] = { > {"NodeRecord", "NR", IB_SA_ATTR_NODERECORD, > "[lid]", query_node_records}, > {"PortInfoRecord", "PIR", IB_SA_ATTR_PORTINFORECORD, > - "[[lid]/[port]]", query_portinfo_records}, > + "[[lid]/[port]/[options]]", query_portinfo_records}, > {"SL2VLTableRecord", "SL2VL", IB_SA_ATTR_SL2VLTABLERECORD, > "[[lid]/[in_port]/[out_port]]", query_sl2vl_records}, > {"PKeyTableRecord", "PKTR", IB_SA_ATTR_PKEYTABLERECORD, > -- > 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 -- Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 weiny2-i2BcT+NCU+M@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:[~2011-08-18 18:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 0:18 [PATCH] infiniband-diags/saquery: Add extended link speed support for PortInfoRecord queries Hal Rosenstock
[not found] ` <4E49B76B.8010403-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-08-18 18:22 ` Ira Weiny
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox