Add proper support for VIMAGE to krping.

Make sure we pass the correct VNET when allocating the RDMA ID.

MFC after:		3 days
Approved by:		re (gjb)
Sponsored by:		Mellanox Technologies
This commit is contained in:
hselasky 2018-09-06 14:03:11 +00:00
parent 231b46e180
commit 4fb89d7603

View File

@ -2156,7 +2156,7 @@ int krping_doit(char *cmd)
goto out;
}
cb->cm_id = rdma_create_id(&init_net, krping_cma_event_handler, cb, RDMA_PS_TCP, IB_QPT_RC);
cb->cm_id = rdma_create_id(TD_TO_VNET(curthread), krping_cma_event_handler, cb, RDMA_PS_TCP, IB_QPT_RC);
if (IS_ERR(cb->cm_id)) {
ret = PTR_ERR(cb->cm_id);
printk(KERN_ERR PFX "rdma_create_id error %d\n", ret);