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>

authored by

Ralph Campbell and committed by
Roland Dreier
ea5d4a6a b4ca1a3f

+1
+1
drivers/infiniband/core/uverbs_cmd.c
··· 1454 1454 attr.sl = cmd.attr.sl; 1455 1455 attr.src_path_bits = cmd.attr.src_path_bits; 1456 1456 attr.static_rate = cmd.attr.static_rate; 1457 + attr.ah_flags = cmd.attr.is_global ? IB_AH_GRH : 0; 1457 1458 attr.port_num = cmd.attr.port_num; 1458 1459 attr.grh.flow_label = cmd.attr.grh.flow_label; 1459 1460 attr.grh.sgid_index = cmd.attr.grh.sgid_index;