1*81299069SRyan Stone.\" 2*81299069SRyan Stone.\" Copyright (c) 2014 Sandvine Inc. 3*81299069SRyan Stone.\" All rights reserved. 4*81299069SRyan Stone.\" 5*81299069SRyan Stone.\" Redistribution and use in source and binary forms, with or without 6*81299069SRyan Stone.\" modification, are permitted provided that the following conditions 7*81299069SRyan Stone.\" are met: 8*81299069SRyan Stone.\" 1. Redistributions of source code must retain the above copyright 9*81299069SRyan Stone.\" notice, this list of conditions and the following disclaimer. 10*81299069SRyan Stone.\" 2. Redistributions in binary form must reproduce the above copyright 11*81299069SRyan Stone.\" notice, this list of conditions and the following disclaimer in the 12*81299069SRyan Stone.\" documentation and/or other materials provided with the distribution. 13*81299069SRyan Stone.\" 14*81299069SRyan Stone.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*81299069SRyan Stone.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*81299069SRyan Stone.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*81299069SRyan Stone.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*81299069SRyan Stone.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*81299069SRyan Stone.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*81299069SRyan Stone.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*81299069SRyan Stone.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*81299069SRyan Stone.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*81299069SRyan Stone.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*81299069SRyan Stone.\" SUCH DAMAGE. 25*81299069SRyan Stone.\" 26*81299069SRyan Stone.\" $FreeBSD$ 27*81299069SRyan Stone.\" 28*81299069SRyan Stone.Dd May 21, 2014 29*81299069SRyan Stone.Dt IOVCTL 8 30*81299069SRyan Stone.Os 31*81299069SRyan Stone.Sh NAME 32*81299069SRyan Stone.Nm iovctl 33*81299069SRyan Stone.Nd "PCI SR-IOV configuration utility" 34*81299069SRyan Stone.Sh SYNOPSIS 35*81299069SRyan Stone.Nm 36*81299069SRyan Stone.Fl C 37*81299069SRyan Stone.Op Fl f Ar config-file 38*81299069SRyan Stone.Op Fl n 39*81299069SRyan Stone.Nm 40*81299069SRyan Stone.Fl D 41*81299069SRyan Stone.Op Fl f Ar config-file | Fl d Ar device 42*81299069SRyan Stone.Op Fl n 43*81299069SRyan Stone.Nm 44*81299069SRyan Stone.Fl S 45*81299069SRyan Stone.Op Fl f Ar config-file | Fl d Ar device 46*81299069SRyan Stone.Sh DESCRIPTION 47*81299069SRyan StoneThe 48*81299069SRyan Stone.Nm 49*81299069SRyan Stoneutility creates or destroys PCI Single-Root I/O Virtualization 50*81299069SRyan Stone.Pq SR-IOV 51*81299069SRyan StoneVirtual Functions 52*81299069SRyan Stone.Po VFs Pc . 53*81299069SRyan StoneWhen invoked with the 54*81299069SRyan Stone.Fl C 55*81299069SRyan Stoneflag, 56*81299069SRyan Stone.Nm 57*81299069SRyan Stonecreates VFs as children of the Physical Function 58*81299069SRyan Stone.Pq PF 59*81299069SRyan Stoneconfigured in the specified configuration file. 60*81299069SRyan StoneWhen invoked with the 61*81299069SRyan Stone.Fl D 62*81299069SRyan Stoneflag, 63*81299069SRyan Stone.Nm 64*81299069SRyan Stonedestroys all VFs that are children of the specified device. 65*81299069SRyan StoneAvailable PF devices can be seen in 66*81299069SRyan Stone.Pa /dev/iov/ . 67*81299069SRyan Stone.Pp 68*81299069SRyan StoneThe following options are available: 69*81299069SRyan Stone.Bl -tag -width indent 70*81299069SRyan Stone.It Fl C 71*81299069SRyan StoneEnable SR-IOV on the specified PF device and create VF children. 72*81299069SRyan StoneThis operation will fail if the PF already has VF children. 73*81299069SRyan StoneThis option must be used in conjunction with the 74*81299069SRyan Stone.Fl f 75*81299069SRyan Stoneoption. 76*81299069SRyan Stone.It Fl d Ar device 77*81299069SRyan StoneSpecify the PF device to use for the given operation. 78*81299069SRyan Stone.Ar device 79*81299069SRyan Stonemay either be the name of a PF device, or a full path name to a node in 80*81299069SRyan Stone.Pa /dev/iov/ . 81*81299069SRyan StoneThis option may not be used with the 82*81299069SRyan Stone.Fl C 83*81299069SRyan Stoneoption. 84*81299069SRyan Stone.It Fl D 85*81299069SRyan StoneDelete all VF children of the specified PF device. 86*81299069SRyan StoneThis operation will fail if SR-IOV is not currently enabled on the specified 87*81299069SRyan Stonedevice. 88*81299069SRyan Stone.It Fl f Ar config-file 89*81299069SRyan StoneSpecify the pathname of the configuration file. 90*81299069SRyan StoneFor the 91*81299069SRyan Stone.Fl C 92*81299069SRyan Stoneoption, this file will be used to specify all configuration values. 93*81299069SRyan StoneFor the 94*81299069SRyan Stone.Fl D 95*81299069SRyan Stoneand 96*81299069SRyan Stone.Fl S 97*81299069SRyan Stoneoptions, this file will only be used to specify the name of the PF device. 98*81299069SRyan Stone.Pp 99*81299069SRyan StoneSee 100*81299069SRyan Stone.Xr iovctl.conf 101*81299069SRyan Stonefor a description of the config file format and documentation of the 102*81299069SRyan Stoneconfiguration parameters that apply to all PF drivers. 103*81299069SRyan StoneSee the PF driver manual page for configuration parameters specific to 104*81299069SRyan Stoneparticular hardware. 105*81299069SRyan Stone.It Fl n 106*81299069SRyan StonePerform a dry-run. 107*81299069SRyan StonePerform all validation of the specified action and print what would be done, 108*81299069SRyan Stonebut do not perform the actual creation or destruction of VFs. 109*81299069SRyan StoneThis option may not be used with the 110*81299069SRyan Stone.Fl S 111*81299069SRyan Stoneflag. 112*81299069SRyan Stone.It Fl S 113*81299069SRyan StoneRead the configuration schema from the specified device and print its contents 114*81299069SRyan Stoneto stdout. 115*81299069SRyan StoneThis action may be used to discover the configuration parameters supported on 116*81299069SRyan Stonea given PF device. 117*81299069SRyan Stone.El 118*81299069SRyan Stone.Sh SEE ALSO 119*81299069SRyan Stone.Xr iovctl.conf 5 , 120*81299069SRyan Stone.Xr rc.conf 5 121*81299069SRyan Stone.Sh AUTHORS 122*81299069SRyan StoneThis manual page was written by 123*81299069SRyan Stone.An Ryan Stone Aq Mt rstone@FreeBSD.org . 124