net/mlx4_vnic: Initialize new fields of mlx4_ib_qp
Initializing the three new mlx4_ib_qp's fields - qps_list, cq_recv_list
and cq_send_list.
w/o initializing these new fields, kernel crashed in destroy_qp_common
when trying to remove them from the list.
The functions get_cqs, mlx4_ib_lock_cqs and mlx4_ib_unlock_cqs moved as
inline functions to mlx4_ib.h so it can be called also from mlx4_vnic.
Orabug:
21530835
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>