Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10699
b: refs/heads/master
c: 9825051
h: refs/heads/master
i:
  10697: cca5dd6
  10695: 82af45b
v: v3
  • Loading branch information
Jack Morgenstein authored and Roland Dreier committed Oct 17, 2005
1 parent e9bb985 commit d298c3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 274c0891637c44ac71f3ac40be91b43c2318883a
refs/heads/master: 9825051e8c81cbd4400333e7cdc04be77a0bab75
4 changes: 4 additions & 0 deletions trunk/drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,13 @@ static int mthca_query_port(struct ib_device *ibdev,
props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len;
props->max_msg_sz = 0x80000000;
props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len;
props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
props->active_width = out_mad->data[31] & 0xf;
props->active_speed = out_mad->data[35] >> 4;
props->max_mtu = out_mad->data[41] & 0xf;
props->active_mtu = out_mad->data[36] >> 4;
props->subnet_timeout = out_mad->data[51] & 0x1f;

out:
kfree(in_mad);
Expand Down

0 comments on commit d298c3b

Please sign in to comment.