diff options
author | Ralph Campbell <ralphc@pathscale.com> | 2006-01-06 19:24:45 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-01-06 19:24:45 -0500 |
commit | ea5d4a6ad2bfd1006790666981645cab43d3afbd (patch) | |
tree | eab8ec359f4dd5d833932c6107023701038224e2 /drivers/infiniband | |
parent | b4ca1a3f8ca24033d7b7ef595faef97d9f8b2326 (diff) |
IB/uverbs: set ah_flags when creating address handle
AH attribute's ah_flags need to be set according to the is_global flag
passed in from userspace.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 6985a57fa6ae..12d6cc0a7f80 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c | |||
@@ -1454,6 +1454,7 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file, | |||
1454 | attr.sl = cmd.attr.sl; | 1454 | attr.sl = cmd.attr.sl; |
1455 | attr.src_path_bits = cmd.attr.src_path_bits; | 1455 | attr.src_path_bits = cmd.attr.src_path_bits; |
1456 | attr.static_rate = cmd.attr.static_rate; | 1456 | attr.static_rate = cmd.attr.static_rate; |
1457 | attr.ah_flags = cmd.attr.is_global ? IB_AH_GRH : 0; | ||
1457 | attr.port_num = cmd.attr.port_num; | 1458 | attr.port_num = cmd.attr.port_num; |
1458 | attr.grh.flow_label = cmd.attr.grh.flow_label; | 1459 | attr.grh.flow_label = cmd.attr.grh.flow_label; |
1459 | attr.grh.sgid_index = cmd.attr.grh.sgid_index; | 1460 | attr.grh.sgid_index = cmd.attr.grh.sgid_index; |