]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pass SR-IOV configuration to kernel using an nvlist
authorRyan Stone <rstone@FreeBSD.org>
Sun, 1 Mar 2015 00:40:57 +0000 (00:40 +0000)
committerRyan Stone <rstone@FreeBSD.org>
Sun, 1 Mar 2015 00:40:57 +0000 (00:40 +0000)
commit5cc26e63421e9275356fe2f84fbc0f3fec5205c2
treeaeb36fc4115d443d1ebaae0f7d59cddafa0de9d3
parent3c22f2153cf8120bcea4143df4baa6e376d3a0b3
Pass SR-IOV configuration to kernel using an nvlist

Pass all SR-IOV configuration to the kernel using an nvlist.  The
main benefit that this offers is flexibility.  It allows a driver
to accept any number of parameters of any type supported by the
SR-IOV configuration infrastructure with having to make any
changes outside of the driver.

It also offers the user very fine-grained control over the
configuration of the VFs -- if they want, they can have different
configuration applied to every VF.

Differential Revision: https://reviews.freebsd.org/D82
Reviewed by: jhb
MFC after:  1 month
Sponsored by: Sandvine Inc.
sys/dev/pci/pci_if.m
sys/dev/pci/pci_iov.c
sys/sys/iov.h