[vfio-users] NIC driver

Alex Williamson alex.williamson at redhat.com
Wed Apr 1 14:15:29 UTC 2020


On Wed, 1 Apr 2020 11:33:21 +0000
"McLeod, Dennis" <Dennis.McLeod at molex.com> wrote:

> I am working on a project in which we have a driver that does the
> necessary register_netdev() stuff at the kernel level. If I wanted to
> take advantage of the vfio framework .. how would the device get
> registered as a network device (with the kernel) if I have to unbind
> my driver to bind vfio-pci? Very new to vfio, so apologies in advance
> if my understanding is way off the mark.

vfio is for writing userspace drivers, not for writing kernel drivers
in userspace.  If you want a netdev, write a kernel driver.  If you
want to bypass the kernel network stack with a driver entirely in
userspace (ex. DPDK), use vfio.  Thanks,

Alex




More information about the vfio-users mailing list