IB/mlx5: Assign SRQ type earlier
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 27 Nov 2016 13:18:20 +0000 (15:18 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:46 +0000 (13:39 -0500)
commitc73b7911de97fad3ab9032a110af48d6ab2da48f
treedc73b501513d3abcafb1aedae03edfa97ffb6d4a
parentc482af646d0809a8d5e1b7f4398cce3592589b98
IB/mlx5: Assign SRQ type earlier

Move the SRQ type assignment to be before actually using it
in create_srq_user() and in create_srq_kernel() functions.

Fixes: af1ba291c5e4 ('{net, IB}/mlx5: Refactor internal SRQ API')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/srq.c