[openib-general] is wc valid if ib_poll_cq() returns zero

somenath somenath at veritas.com
Thu Jul 13 19:25:35 PDT 2006


two Qs refers to openib kernel stack found in Redhat distribution (RHEL4 update 3)
 (redhat kernel version: 2.4.18-14 #1):

1. if ib_poll_cq(cq, 1, &wc) returns zero, does wc contain a valid entry?


[just for reference what happend in gen1 stack
following code is  from gen1 code where if similar routine returned zero send_entry was still valid... 
if ( target->state == TARGET_ACTIVE_CONNECTION ) {
                status = ib_cq_poll( target->active_conn->cqs_hndl, &send_entry );
                if ( status == 0 ) {
                    cq_send_handler( NULL, &send_entry, target );
                }
            }
]

2. why is the io completion routine called when ib_poll_cq() returns zero? is there some error happening here?

thanks, som.





More information about the general mailing list