diff mbox

[TRIVIAL] infiniband-diags/vendstat.c: Commentary change

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

Commit Message

Hal Rosenstock July 12, 2012, 10:35 a.m. UTC
Add device names to go along with device IDs

Signed-off-by: Hal Rosenstock <hal@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 12, 2012, 11:58 p.m. UTC | #1
On Thu, 12 Jul 2012 06:35:13 -0400
Hal Rosenstock <hal@dev.mellanox.co.il> wrote:

> 
> Add device names to go along with device IDs
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>

Thanks applied,
Ira

> ---
> diff --git a/src/vendstat.c b/src/vendstat.c
> index 1c493fa..8535792 100644
> --- a/src/vendstat.c
> +++ b/src/vendstat.c
> @@ -142,10 +142,10 @@ typedef struct {
>  } is4_config_counter_groups_t;
>  
>  static uint16_t ext_fw_info_device[][2] = {
> -	{0x0245, 0x0245},
> -	{0xc738, 0xc738},
> -	{0x01b3, 0x01b3},
> -	{0x1003, 0x1011},
> +	{0x0245, 0x0245},	/* Switch-X */
> +	{0xc738, 0xc738},	/* Switch-X */
> +	{0x01b3, 0x01b3},	/* IS-4 */
> +	{0x1003, 0x1011},	/* Connect-X */
>  	{0x0000, 0x0000}};
>  
>  static int is_ext_fw_info_supported(uint16_t device_id) {
diff mbox

Patch

diff --git a/src/vendstat.c b/src/vendstat.c
index 1c493fa..8535792 100644
--- a/src/vendstat.c
+++ b/src/vendstat.c
@@ -142,10 +142,10 @@  typedef struct {
 } is4_config_counter_groups_t;
 
 static uint16_t ext_fw_info_device[][2] = {
-	{0x0245, 0x0245},
-	{0xc738, 0xc738},
-	{0x01b3, 0x01b3},
-	{0x1003, 0x1011},
+	{0x0245, 0x0245},	/* Switch-X */
+	{0xc738, 0xc738},	/* Switch-X */
+	{0x01b3, 0x01b3},	/* IS-4 */
+	{0x1003, 0x1011},	/* Connect-X */
 	{0x0000, 0x0000}};
 
 static int is_ext_fw_info_supported(uint16_t device_id) {