[Openib-windows] IO_CLASS

Yossi Leybovich sleybo at mellanox.co.il
Tue Oct 3 05:44:35 PDT 2006


Fab 
 
On rev 509 you changed SRP to check the IO_CLASS field.
 
I tested it with the Mellanox Target and it failed. 
I compared your check to  __srp_validate_ioc function and I think you
have typo at srp_init_connection
 
This patch fix the problem .
 
10x
Yossi 
 
Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
 
Index: srp_connection.c
===================================================================
--- srp_connection.c (revision 1724)
+++ srp_connection.c (working copy)
@@ -777,16 +777,16 @@
  p_connection->state = SRP_NOT_CONNECTED;
 
  p_connection->p_path_rec = p_path_rec;
- switch( p_profile->io_class )
+ switch( cl_ntoh16( p_profile->io_class ))
  {
- case 0xFF:
+ case SRP_IO_CLASS_R10:
   p_connection->init_port_id.field1 = ca_guid;
   p_connection->init_port_id.field2 = ext_id;
   p_connection->targ_port_id.field1 = p_profile->ioc_guid;
   p_connection->targ_port_id.field2 = ext_id;
   break;
 
- case 0x0100:
+ case SRP_IO_CLASS:
   p_connection->init_port_id.field1 = ext_id;
   p_connection->init_port_id.field2 = ca_guid;
   p_connection->targ_port_id.field1 = ext_id;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: srp_io_class.patch
Type: application/octet-stream
Size: 807 bytes
Desc: srp_io_class.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20061003/3a51cb76/attachment.obj>


More information about the ofw mailing list