K 10 svn:author V 4 ngie K 8 svn:date V 27 2016-01-03T06:51:57.003927Z K 7 svn:log V 1666 MFC r279457,r279458,r279459,r279460,r279461,r279463,r279469,r284891: r279457 (by rstone): Add a manpage for iovctl(8) r279458 (by rstone): Add manpage documenting iovctl config file format. r279459 (by rstone): Add iovctl functions for validating config 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. r279460 (by rstone): Add functions for parsing the iovctl config file 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 r279461 (by rstone): Add main() for iovctl and hook iovctl into build r279463 (by rstone): Add an rc.d script to invoke iovctl(8) during boot Relnotes: yes r279469 (by rstone): Correct a typo. X-MFC-With: r279458 r284891 (by pkelsey): Use correct flag in iovctl_start(). END