IB/mthca: Query port fix
authorJack Morgenstein <jackm@mellanox.co.il>
Wed, 4 Oct 2006 11:56:34 +0000 (13:56 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Oct 2006 19:50:36 +0000 (12:50 -0700)
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@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_provider.c

index 981fe2eebdfa36228693781627c65464286aadb3..fc67f780581b284f4552c5d3ca72d05813cc48a0 100644 (file)
@@ -179,6 +179,8 @@ static int mthca_query_port(struct ib_device *ibdev,
        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);