<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif">The VFIO capabilties of Linux allow the mapping of an adapter VF into user space. Intel has an implementation of a library that uses VFIO to control adapters and there is also a Mellanox userspace driver that can use VFIO. There is already a standard for this.</div><div class="gmail_default" style="font-family:times new roman,serif"><br></div><div class="gmail_default" style="font-family:times new roman,serif">For the generic abstraction of a NIC in user space see <a href="http://dpdk.org">http://dpdk.org</a></div><div class="gmail_default" style="font-family:times new roman,serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 5:41 PM, Reese Faucette (rfaucett) <span dir="ltr"><<a href="mailto:rfaucett@cisco.com" target="_blank">rfaucett@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Many adapters allow mapping memory regions on the adapter into user-space for efficient PIO-based sending and receiving.  This is often a big performance win and seems worthwhile finding an efficient abstract for.  Has this been discussed
 at all?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The approach of “let the provider find the best way to use the hardware resources and hide that from the user” will not always work in this case, as the constraints on adapter-mapped memory may prevent it from being a general solution. 
 For example, it may be a limited resource, and so not every EP will have access to it, and those that do may have restrictions that other EPs do not have (e.g. fewer send credits available, smaller MTU).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any thoughts on whether this is worth trying to come up with some abstraction for?  From Cisco’s point of view, it definitely is – it requires some level of EP differentiation such that it cannot be totally transparent to the app, but it
 can drop latency by 20%, a worthwhile goal for us.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As another example, the new Solarflare NICs are pushing this as a feature also:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://support.solarflare.com/index.php?option=com_cognidox&file=SF-111142-TC-1_Introduction_to_SFC91xx_ASIC_Family.pdf&task=download&format=raw&Itemid=17" target="_blank">https://support.solarflare.com/index.php?option=com_cognidox&file=SF-111142-TC-1_Introduction_to_SFC91xx_ASIC_Family.pdf&task=download&format=raw&Itemid=17</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">See section on “PIO and Templates” – it’s not just us <span style="font-family:Wingdings">
J</span><span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-reese<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
ofiwg mailing list<br>
<a href="mailto:ofiwg@lists.openfabrics.org">ofiwg@lists.openfabrics.org</a><br>
<a href="http://lists.openfabrics.org/mailman/listinfo/ofiwg" target="_blank">http://lists.openfabrics.org/mailman/listinfo/ofiwg</a><br>
<br></blockquote></div><br></div>