> -----Original Message-----
> From: Hal Rosenstock [mailto:h...@dev.mellanox.co.il]
> Sent: Wednesday, November 05, 2014 12:22 PM
> To: Weiny, Ira
> Cc: linux-rdma (linux-rdma@vger.kernel.org); Doug Ledford; Dan Ben-Yosef
> Subject: [PATCH infiniband-diags] saquery.c: Fix handling of cpi and
> ClassPortInfo options
> 
> 
> Need to check if query_type is CLASS_PORT_INFO in order to handle saquery
> [cpi | ClassPortInfo].
> Otherwise, it just dumps ClassPortInfo attribute as all 0s.
> 
> Note that saquery -c works fine because it set command to
> SAQUERY_CMD_CLASS_PORT_INFO.
> 
> Signed-off-by: Hal Rosenstock <h...@mellanox.com>

Thanks applied,
Ira



> ---
> diff --git a/src/saquery.c b/src/saquery.c index 0f39064..1af3401 100644
> --- a/src/saquery.c
> +++ b/src/saquery.c
> @@ -1869,6 +1869,7 @@ int main(int argc, char **argv)
>               params.dlid = get_lid(h, dst_lid);
> 
>       if (command == SAQUERY_CMD_CLASS_PORT_INFO ||
> +         query_type == CLASS_PORT_INFO ||
>           query_type == IB_SA_ATTR_SWITCHINFORECORD)
>               sa_cpi_required = 1;
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to