Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 702b2aac authored by Ami Perlmutter's avatar Ami Perlmutter Committed by Roland Dreier
Browse files

IB/uverbs: Use correct alt_pkey_index in modify QP



The old code incorrectly used the primary P_Key index as the alternate
index too.

Signed-off-by: default avatarAmi Perlmutter <amip@mellanox.co.il>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent f36e1793
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1131,7 +1131,7 @@ ssize_t ib_uverbs_modify_qp(struct ib_uverbs_file *file,
	attr->dest_qp_num 	  = cmd.dest_qp_num;
	attr->qp_access_flags 	  = cmd.qp_access_flags;
	attr->pkey_index 	  = cmd.pkey_index;
	attr->alt_pkey_index 	  = cmd.pkey_index;
	attr->alt_pkey_index 	  = cmd.alt_pkey_index;
	attr->en_sqd_async_notify = cmd.en_sqd_async_notify;
	attr->max_rd_atomic 	  = cmd.max_rd_atomic;
	attr->max_dest_rd_atomic  = cmd.max_dest_rd_atomic;