diff mbox

[PATCHv2] infiniband-diags: Support MLNX ExtendedPortInfo for ConnectIB device

Message ID 4FF9C831.8010506@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Ira Weiny
Headers show

Commit Message

Hal Rosenstock July 8, 2012, 5:49 p.m. UTC
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
Change since v1:
Added similar change to libibnetdisc
Pointed out by Daniel Klein <danielk@mellanox.com>

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

Comments

Ira Weiny July 11, 2012, 12:41 a.m. UTC | #1
On Sun, 08 Jul 2012 13:49:37 -0400
Hal Rosenstock <hal@dev.mellanox.co.il> wrote:

> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> ---
> Change since v1:
> Added similar change to libibnetdisc
> Pointed out by Daniel Klein <danielk@mellanox.com>
> 
> diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c
> index a0cbe3e..3a7dd8f 100644
> --- a/libibnetdisc/src/ibnetdisc.c
> +++ b/libibnetdisc/src/ibnetdisc.c
> @@ -205,7 +205,7 @@ static int
> is_mlnx_ext_port_info_supported(ibnd_port_t * port)

I am not sure why but the patch line wrapped here.

Regardless I fixed it and applied, thanks,
Ira

> 
>  	if (devid == 0xc738)
>  		return 1;
> -	if (devid >= 0x1003 && devid <= 0x1010)
> +	if (devid >= 0x1003 && devid <= 0x1011)
>  		return 1;
>  	return 0;
>  }
> diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
> index 78882a2..ebe8797 100644
> --- a/src/ibdiag_common.c
> +++ b/src/ibdiag_common.c
> @@ -501,7 +501,7 @@ int is_mlnx_ext_port_info_supported(uint32_t devid)
>  	if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {
>  		if (devid == 0xc738)
>  			return 1;
> -		if (devid >= 0x1003 && devid <= 0x1010)
> +		if (devid >= 0x1003 && devid <= 0x1011)
>  			return 1;
>  	}
>  	return 0;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c
index a0cbe3e..3a7dd8f 100644
--- a/libibnetdisc/src/ibnetdisc.c
+++ b/libibnetdisc/src/ibnetdisc.c
@@ -205,7 +205,7 @@  static int
is_mlnx_ext_port_info_supported(ibnd_port_t * port)

 	if (devid == 0xc738)
 		return 1;
-	if (devid >= 0x1003 && devid <= 0x1010)
+	if (devid >= 0x1003 && devid <= 0x1011)
 		return 1;
 	return 0;
 }
diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
index 78882a2..ebe8797 100644
--- a/src/ibdiag_common.c
+++ b/src/ibdiag_common.c
@@ -501,7 +501,7 @@  int is_mlnx_ext_port_info_supported(uint32_t devid)
 	if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {
 		if (devid == 0xc738)
 			return 1;
-		if (devid >= 0x1003 && devid <= 0x1010)
+		if (devid >= 0x1003 && devid <= 0x1011)
 			return 1;
 	}
 	return 0;