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:
parent
cae8b43e5c
commit
58c277d846
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338495
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user