[ofa-general] RE: [ewg] req_notify_cq is NULL

Yonathan Cohen yonic at voltaire.com
Mon Jul 2 22:56:13 PDT 2007


> -----Original Message-----
> From: ewg-bounces at lists.openfabrics.org 
> [mailto:ewg-bounces at lists.openfabrics.org] On Behalf Of Yonathan Cohen
> Sent: Tuesday, July 03, 2007 8:53 AM
> To: OpenFabrics EWG; general at lists.openfabrics.org
> Subject: [ewg] req_notify_cq is NULL
> 
> Hello,
> I am creating a listener like so : 
> 	cma_id = rdma_create_id(cma_handler, my_context, RDMA_PS_TCP);
> 
> And then call bind : 
> 	memset(&addr, 0, sizeof addr);
> 	addr.sin_port = htons(port);
> 	addr.sin_family = AF_INET;
> 	addr.sin_addr.s_addr = INADDR_ANY;
> 	rdma_bind_addr(cma_id, (struct sockaddr *)&addr);
> 
> And listen : 
> 	rdma_listen(cma_id, 0);
> 
> But when the event_handler ( cma_handler )  is called-back the "struct
> rdma_cm_id* "
> Has its api func "req_notify_cq" ( i.e.
> rdma_cm_id->device->req_notify->cq ) set to NULL.
> Although, other api funcs like create_cq and create_qp are 
> set with ( im not sure with a valid pointer ) 
> 
> I added a printk to mthca_register_device() ( in 
> mthca_provider.c ) which at insmod logs that "req_notify_cq" 
> is in fact set with an address.
> Im using a mellanox HCA :  "Mellanox Technologies MT23108 InfiniHost"
> So its not memfree and req_notify_cq is set with mthca_tavor_arm_cq.
> But still when the RMDA_CM_EVENT_CONNECT_REQUEST is received 
> this func is NULL.
> 
> Please help.
> 
> __________________________________________________________
> Cohen Yonatan   |  +972-9-9718607 (o)
> Software. Eng,  Storage group
> Voltaire - The Grid Backbone
>  www.voltaire.com
> 
>   
> _______________________________________________
> ewg mailing list
> ewg at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
> 

Btw - Im using ofed1.2 ga.

__________________________________________________________
Cohen Yonatan   |  +972-9-9718607 (o)
Software. Eng,  Storage group
Voltaire - The Grid Backbone
 www.voltaire.com

  
 



More information about the general mailing list