aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/iovctl
Commit message (Collapse)AuthorAgeFilesLines
* Clean up repeated "All rights reserved"Ryan Stone2016-03-144-4/+4
| | | | Notes: svn path=/head/; revision=296865
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+21
| | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* Replace use of .Po Pc with the preferred .Pq for single linePatrick Kelsey2015-07-082-6/+6
| | | | | | | | | | | | enclosures in iovctl.conf(5), iovctl(8), pci(9), and pci_iov_schema(9). Differential Revision: https://reviews.freebsd.org/D3000 Reviewed by: wblock Approved by: jmallett (mentor) Notes: svn path=/head/; revision=285273
* Fix range upper bound for uint32_t and uint64_t, and reformat rangePatrick Kelsey2015-07-061-5/+9
| | | | | | | | | | | | description for uint8_t, uint16_t, uint32_t, and uint64_t. Differential Revision: https://reviews.freebsd.org/D2988 Reviewed by: rstone, wblock Approved by: jmallett (mentor) Sponsored by: Norse Corp, Inc. Notes: svn path=/head/; revision=285189
* Let the nv.h and dnv.h includes be only in sys directory.Mariusz Zaborski2015-07-023-5/+5
| | | | | | | | | | Change consumers to include those files from sys. Add duplicated files to ObsoleteFiles. Approved by: pjd (mentor) Notes: svn path=/head/; revision=285063
* Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.Mariusz Zaborski2015-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous. Update consumers of this and related functions and update the tests. Approved by: pjd (mentor) Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist. Reviewed by: AllanJude Approved by: pjd (mentor) Notes: svn path=/head/; revision=282346
* Fix minor mdoc issues.Joel Dahl2015-04-241-3/+3
| | | | Notes: svn path=/head/; revision=281931
* Correct a typo.Ryan Stone2015-03-011-1/+1
| | | | | | | X-MFC-With: r279458 Notes: svn path=/head/; revision=279469
* Add main() for iovctl and hook iovctl into buildRyan Stone2015-03-013-0/+457
| | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D87 Reviewed by: jhb MFC after: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279461
* Add functions for parsing the iovctl config fileRyan Stone2015-03-011-0/+416
| | | | | | | | | | | | | | | | | | | | | | | | Add two functions for parsing the iovctl config file. The config file is parsed using libucl[1], which accepts most YAML files and a superset of JSON. The first function is an ad-hoc parser that searches the file for the PF.DEVICE configuration value. We need to know that value in order to fetch the schema from the kernel, and we need the schema in order to be able to fully parse the file. The second function parses the config file and validates it against a schema. This function will exit with an error message if any validation error occurs. If it succeeds, the configuration is returned as an nvlist suitable for passing to the kernel. [1] https://github.com/vstakhov/libucl Differential Revision: https://reviews.freebsd.org/D86 Reviewed by: jhb MFC after: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279460
* Add iovctl functions for validating configRyan Stone2015-03-011-0/+274
| | | | | | | | | | | | | | | | | Add an function to iovctl that validates the configuration against a schema. This function is able to assume that the parser has done most of the validation already and it's only responsible for applying default VF values specified in the config file, confirming that all required parameters have been set and that no invalid VF numbers have been specified. Differential Revision: https://reviews.freebsd.org/D85 Reviewed by: bcr MFC after: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279459
* Add manpage documenting iovctl config file format.Ryan Stone2015-03-011-0/+167
| | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D84 Reviewed by: emaste, bcr, wblock MFC after: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279458
* Add a manpage for iovctl(8)Ryan Stone2015-03-011-0/+123
Differential Revision: https://reviews.freebsd.org/D83 Reviewed by: wblock MFC after: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279457