public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 infiniband-diags] vendstat.c: Add additional vendor IDs to ext_fw_info_device
@ 2015-01-14 14:07 Hal Rosenstock
       [not found] ` <54B6780E.1050907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2015-01-14 14:07 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)

Add additional supported device IDs to ext_fw_info_device.
These IDs are ConnectX-4, ConnectX-IB, and Switch-IB.
This affects is_ext_fw_info_supported which determine
which Mellanox specific vendor MADs are issued to a device.

Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
Change since v1:
Changed ConnectX-3 to Connect-IB in patch description

diff --git a/src/vendstat.c b/src/vendstat.c
index f28ff02..7fc4a11 100644
--- a/src/vendstat.c
+++ b/src/vendstat.c
@@ -145,8 +145,9 @@ typedef struct {
 static uint16_t ext_fw_info_device[][2] = {
 	{0x0245, 0x0245},	/* Switch-X */
 	{0xc738, 0xc738},	/* Switch-X */
+	{0xcb84, 0xcb84},	/* Switch-IB */
 	{0x01b3, 0x01b3},	/* IS-4 */
-	{0x1003, 0x1011},	/* Connect-X */
+	{0x1003, 0x1016},	/* Connect-X */
 	{0x0000, 0x0000}};
 
 static int is_ext_fw_info_supported(uint16_t device_id) {
--
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: [PATCHv2 infiniband-diags] vendstat.c: Add additional vendor IDs to ext_fw_info_device
       [not found] ` <54B6780E.1050907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2015-01-19 22:26   ` Weiny, Ira
  0 siblings, 0 replies; 2+ messages in thread
From: Weiny, Ira @ 2015-01-19 22:26 UTC (permalink / raw)
  To: Hal Rosenstock
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)



> -----Original Message-----
> From: Hal Rosenstock [mailto:hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org]
> Sent: Wednesday, January 14, 2015 6:07 AM
> To: Weiny, Ira
> Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
> Subject: [PATCHv2 infiniband-diags] vendstat.c: Add additional vendor IDs to
> ext_fw_info_device
> 
> Add additional supported device IDs to ext_fw_info_device.
> These IDs are ConnectX-4, ConnectX-IB, and Switch-IB.
> This affects is_ext_fw_info_supported which determine which Mellanox
> specific vendor MADs are issued to a device.
> 
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

Thanks applied,
Ira


> ---
> Change since v1:
> Changed ConnectX-3 to Connect-IB in patch description
> 
> diff --git a/src/vendstat.c b/src/vendstat.c index f28ff02..7fc4a11 100644
> --- a/src/vendstat.c
> +++ b/src/vendstat.c
> @@ -145,8 +145,9 @@ typedef struct {
>  static uint16_t ext_fw_info_device[][2] = {
>  	{0x0245, 0x0245},	/* Switch-X */
>  	{0xc738, 0xc738},	/* Switch-X */
> +	{0xcb84, 0xcb84},	/* Switch-IB */
>  	{0x01b3, 0x01b3},	/* IS-4 */
> -	{0x1003, 0x1011},	/* Connect-X */
> +	{0x1003, 0x1016},	/* Connect-X */
>  	{0x0000, 0x0000}};
> 
>  static int is_ext_fw_info_supported(uint16_t device_id) {
--
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:[~2015-01-19 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 14:07 [PATCHv2 infiniband-diags] vendstat.c: Add additional vendor IDs to ext_fw_info_device Hal Rosenstock
     [not found] ` <54B6780E.1050907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-01-19 22:26   ` Weiny, Ira

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