[openib-general] [PATCH repost] IB/mthca: query port fix

Michael S. Tsirkin mst at mellanox.co.il
Wed Oct 4 04:56:34 PDT 2006


Fill in "max_vl_num" (encoded according to VLCap field in the PortInfo MAD),
and "init_type_reply" values in the ib_query_port verb.

Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>

---

This was posted a while ago - could the fix go into 2.6.19?

Index: ofed_1_1/drivers/infiniband/hw/mthca/mthca_provider.c
===================================================================
--- ofed_1_1.orig/drivers/infiniband/hw/mthca/mthca_provider.c	2006-08-03 14:30:21.000000000 +0300
+++ ofed_1_1/drivers/infiniband/hw/mthca/mthca_provider.c	2006-08-20 09:37:10.647839000 +0300
@@ -179,6 +179,8 @@ static int mthca_query_port(struct ib_de
 	props->max_mtu           = out_mad->data[41] & 0xf;
 	props->active_mtu        = out_mad->data[36] >> 4;
 	props->subnet_timeout    = out_mad->data[51] & 0x1f;
+	props->max_vl_num        = out_mad->data[37] >> 4;
+	props->init_type_reply   = out_mad->data[41] >> 4;
 
  out:
 	kfree(in_mad);

-- 
MST




More information about the general mailing list