summaryrefslogtreecommitdiffstats
path: root/sys/sys/iov.h
Commit message (Collapse)AuthorAgeFilesLines
* Clean up repeated "All rights reserved"rstone2016-03-141-1/+1
|
* Pass SR-IOV configuration to kernel using an nvlistrstone2015-03-011-7/+88
| | | | | | | | | | | | | | | | | 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.
* Add function to validate the consistency of SR-IOV configrstone2015-03-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Add a function that validates that the user-provided SR-IOV configuration is valid. This includes basic checks that the structure of the configuration is correct (e.g. all required configuration nodes are present) as well as validating against a configuration schema. The schema validation consists of: - Ensuring that all required config parameters are present. - If the schema defines a default value for a parameter, adding the default value if the parameter is not set. - Ensuring that no parameters are specified in the config that are not defined in the schema. - Ensuring that have the correct type defined in the schema. - Ensuring that no configuration nodes are present for devices that do not exist. For example, if 2 VFs are configured, then we validate that a node called VF-5 does not exist. Differential Revision: https://reviews.freebsd.org/D81 Reviewed by: jhb MFC after: 1 month Sponsored by: Sandvine Inc.
* Add infrastructure for exporting config schema from PF driversrstone2015-03-011-0/+127
| | | | | | Differential Revision: https://reviews.freebsd.org/D80 MFC after: 1 month Sponsored by: Sandvine Inc.
* Add interface to destroy SR-IOV VFsrstone2015-03-011-0/+1
| | | | | | | Differential Revision: https://reviews.freebsd.org/D79 Reviewed by: jhb MFC after: 1 month Sponsored by: Sandvine Inc.
* Implement interface to create SR-IOV Virtual Functionsrstone2015-03-011-0/+43
Implement the interace to create SR-IOV Virtual Functions (VFs). When a driver registers that they support SR-IOV by calling pci_setup_iov(), the SR-IOV code creates a new node in /dev/iov for that device. An ioctl can be invoked on that device to create VFs and have the driver initialize them. At this point, allocating memory I/O windows (BARs) is not supported. Differential Revision: https://reviews.freebsd.org/D76 Reviewed by: jhb MFC after: 1 month Sponsored by: Sandvine Inc.
OpenPOWER on IntegriCloud