Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217735
b: refs/heads/master
c: 2420b60
h: refs/heads/master
i:
  217733: 83cd299
  217731: 4e40e6e
  217727: 22b7726
v: v3
  • Loading branch information
Eli Cohen authored and Roland Dreier committed Oct 25, 2010
1 parent 5073dc3 commit be2191c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff7f5aab354dee01f29c9c00933f6d4aa590eadb
refs/heads/master: 2420b60b1dc4ed98cb1788e928bc57ff2efa1a8d
2 changes: 2 additions & 0 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ ssize_t ib_uverbs_query_port(struct ib_uverbs_file *file,
resp.active_width = attr.active_width;
resp.active_speed = attr.active_speed;
resp.phys_state = attr.phys_state;
resp.link_layer = rdma_port_get_link_layer(file->device->ib_dev,
cmd.port_num);

if (copy_to_user((void __user *) (unsigned long) cmd.response,
&resp, sizeof resp))
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/rdma/ib_user_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ struct ib_uverbs_query_port_resp {
__u8 active_width;
__u8 active_speed;
__u8 phys_state;
__u8 reserved[3];
__u8 link_layer;
__u8 reserved[2];
};

struct ib_uverbs_alloc_pd {
Expand Down

0 comments on commit be2191c

Please sign in to comment.