[ofw] RE: Patch: [ipoib] Limit the time that is being spent in a DPC (don't handle more than 128 packet at one recv call)

Tzachi Dar tzachid at mellanox.co.il
Thu Nov 6 13:48:43 PST 2008


At the end of the recv_cb function we arm the cq again.

After the arm a new EQE will be created and the function will be called
again.

Thanks
Tzachi 

> -----Original Message-----
> From: Sean Hefty [mailto:sean.hefty at intel.com] 
> Sent: Thursday, November 06, 2008 11:06 PM
> To: Tzachi Dar; ofw at lists.openfabrics.org
> Subject: RE: Patch: [ipoib] Limit the time that is being 
> spent in a DPC (don't handle more than 128 packet at one recv call)
> 
> >Index: Q:/projinf4/trunk/ulp/ipoib/kernel/ipoib_port.c
> >===================================================================
> >--- Q:/projinf4/trunk/ulp/ipoib/kernel/ipoib_port.c (revision 3437)
> >+++ Q:/projinf4/trunk/ulp/ipoib/kernel/ipoib_port.c (revision 3438)
> >@@ -1666,7 +1666,7 @@
> >   recv_cnt += __recv_mgr_filter( p_port, p_wc, &done_list, 
> &bad_list );
> >   cl_perf_stop( &p_port->p_adapter->perf, FilterRecv );
> >
> >- } while( !p_free );
> >+ } while( !p_free && recv_cnt < 128);
> 
> Should this schedule another DPC?
> 
> 
> 
> 



More information about the ofw mailing list