<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [openib-general] What context can CM be called from?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>If I remember correctly the verbs of create & destroy AVs should be enabled from interrupt context too since they are not privileged verbs. In VAPI we implemented these verbs in this way and I think it is important to keep it this way.</FONT></P>
<P><FONT SIZE=2>So my vote is to fix the core. Is there any limitation for the implementation in gen2 that prevent this?</FONT>
</P>
<P><FONT SIZE=2>Tziporet</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Roland Dreier [<A HREF="mailto:roland@topspin.com">mailto:roland@topspin.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, March 29, 2005 2:31 AM</FONT>
<BR><FONT SIZE=2>To: Sean Hefty</FONT>
<BR><FONT SIZE=2>Cc: openib-general@openib.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [openib-general] What context can CM be called from?</FONT>
</P>
<BR>
<P><FONT SIZE=2> Sean> We might be able to change the CM to be called at interrupt,</FONT>
<BR><FONT SIZE=2> Sean> but doing so requires changes to the verbs implementation.</FONT>
<BR><FONT SIZE=2> Sean> The cm_alloc_msg() calls ib_create_ah(), which I believes</FONT>
<BR><FONT SIZE=2> Sean> calls kmalloc in a similar fashion. I should also note that</FONT>
<BR><FONT SIZE=2> Sean> cm_free_msg() calls ib_destroy_ah().</FONT>
</P>
<P><FONT SIZE=2>Yep good point. A particular implementation of ib_create_ah() may be</FONT>
<BR><FONT SIZE=2>safe from interrupt context but in general ib_create_ah() needs to be</FONT>
<BR><FONT SIZE=2>allowed to sleep.</FONT>
</P>
<P><FONT SIZE=2>So I guess you've got your marching orders, Libor...</FONT>
</P>
<P><FONT SIZE=2> - R.</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>openib-general mailing list</FONT>
<BR><FONT SIZE=2>openib-general@openib.org</FONT>
<BR><FONT SIZE=2><A HREF="http://openib.org/mailman/listinfo/openib-general" TARGET="_blank">http://openib.org/mailman/listinfo/openib-general</A></FONT>
</P>
<P><FONT SIZE=2>To unsubscribe, please visit <A HREF="http://openib.org/mailman/listinfo/openib-general" TARGET="_blank">http://openib.org/mailman/listinfo/openib-general</A></FONT>
</P>
</BODY>
</HTML>