Commit ea5d4a6a authored by Ralph Campbell's avatar Ralph Campbell Committed by Roland Dreier

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: default avatarRoland Dreier <rolandd@cisco.com>
parent b4ca1a3f
...@@ -1454,6 +1454,7 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file, ...@@ -1454,6 +1454,7 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file,
attr.sl = cmd.attr.sl; attr.sl = cmd.attr.sl;
attr.src_path_bits = cmd.attr.src_path_bits; attr.src_path_bits = cmd.attr.src_path_bits;
attr.static_rate = cmd.attr.static_rate; attr.static_rate = cmd.attr.static_rate;
attr.ah_flags = cmd.attr.is_global ? IB_AH_GRH : 0;
attr.port_num = cmd.attr.port_num; attr.port_num = cmd.attr.port_num;
attr.grh.flow_label = cmd.attr.grh.flow_label; attr.grh.flow_label = cmd.attr.grh.flow_label;
attr.grh.sgid_index = cmd.attr.grh.sgid_index; attr.grh.sgid_index = cmd.attr.grh.sgid_index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment