public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* ibstat does not recognize iWARP RNIC adapters
@ 2012-04-26  0:38 Troy Leedberg
       [not found] ` <8A71B368A89016469F72CD08050AD3340B8AAE7F-utt48SW1nMZEErodcbzraFjMPmZJtkid@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Troy Leedberg @ 2012-04-26  0:38 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]

I noticed that doing ibstat, none of the iWARP RNIC adapters were showing up.  I have attached a patch to address the issue (libibumad.patch).

SYS_NODE_TYPE for iWARP RNIC is 4 and is_ib_type only checked to 3.


Before patch is applied:

[root@t4-2 SOURCES]# ibstat
[root@t4-2 SOURCES]#


After patch is applied:

[root@t4-2 libibumad-1.3.7]# ibstat
iWARP RNIC 'cxgb4_0'
        iWARP RNIC type: cxgb4
        Number of ports: 2
        Firmware version: 1.4.23.0
        Hardware version: 2
        Node GUID: 0x000743101d000000
        System image GUID: 0x000743101d000000
        Port 1:
                State: Active
                Physical state: No state change
                Rate: 20
                Base lid: 0
                LMC: 0
                SM lid: 0
                Capability mask: 0x009f0000
                Port GUID: 0x0000000000000000
                Link layer: Ethernet
        Port 2:
                State: Down
                Physical state: No state change
                Rate: 20
                Base lid: 0
                LMC: 0
                SM lid: 0
                Capability mask: 0x009f0000
                Port GUID: 0x0000000000000000
                Link layer: Ethernet
[root@t4-2 libibumad-1.3.7]#


[-- Attachment #2: libibumad.patch --]
[-- Type: application/octet-stream, Size: 642 bytes --]

diff -crB libibumad-1.3.7.orig/src/umad.c libibumad-1.3.7.fix/src/umad.c
*** libibumad-1.3.7.orig/src/umad.c	2011-02-14 04:08:29.000000000 -0500
--- libibumad-1.3.7.fix/src/umad.c	2012-04-25 14:53:26.000000000 -0400
***************
*** 517,523 ****
  	if (sys_read_uint(dir_name, SYS_NODE_TYPE, &type) < 0)
  		return 0;
  
! 	return type >= 1 && type <= 3 ? 1 : 0;
  }
  
  int umad_get_cas_names(char cas[][UMAD_CA_NAME_LEN], int max)
--- 517,523 ----
  	if (sys_read_uint(dir_name, SYS_NODE_TYPE, &type) < 0)
  		return 0;
  
! 	return type >= 1 && type <= 4 ? 1 : 0;
  }
  
  int umad_get_cas_names(char cas[][UMAD_CA_NAME_LEN], int max)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-04-27 17:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-26  0:38 ibstat does not recognize iWARP RNIC adapters Troy Leedberg
     [not found] ` <8A71B368A89016469F72CD08050AD3340B8AAE7F-utt48SW1nMZEErodcbzraFjMPmZJtkid@public.gmane.org>
2012-04-26  6:31   ` Hefty, Sean
     [not found]     ` <1828884A29C6694DAF28B7E6B8A82373469D85A8-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-26 13:39       ` Steve Wise
     [not found]         ` <4F995001.7050306-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2012-04-26 14:12           ` Hefty, Sean
     [not found]             ` <1828884A29C6694DAF28B7E6B8A82373469D860B-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-26 14:15               ` Steve Wise
     [not found]                 ` <4F99586F.5040106-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2012-04-26 14:40                   ` Hal Rosenstock
     [not found]                     ` <4F995E5C.1090705-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-04-26 15:32                       ` Hal Rosenstock
     [not found]                         ` <4F996A71.6090309-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-04-26 15:36                           ` Steve Wise
     [not found]                             ` <4F996B62.2030707-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2012-04-26 22:11                               ` Hefty, Sean
     [not found]                                 ` <1828884A29C6694DAF28B7E6B8A82373469D87B6-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-04-27 17:29                                   ` Ira Weiny
2012-04-26 12:47   ` Hal Rosenstock
     [not found]     ` <4F9943D9.2060705-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-04-27  1:40       ` Ira Weiny
     [not found]         ` <20120426184022.27e0140d.weiny2-i2BcT+NCU+M@public.gmane.org>
2012-04-27 12:19           ` Hal Rosenstock
     [not found]             ` <4F9A8EC3.7060005-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-04-27 17:24               ` Ira Weiny

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