xref: /freebsd/usr.sbin/iovctl/iovctl.8 (revision 32100375a661c1e16588ddfa7b90ca8d26cb9786)
181299069SRyan Stone.\"
281299069SRyan Stone.\" Copyright (c) 2014 Sandvine Inc.
381299069SRyan Stone.\" All rights reserved.
481299069SRyan Stone.\"
581299069SRyan Stone.\" Redistribution and use in source and binary forms, with or without
681299069SRyan Stone.\" modification, are permitted provided that the following conditions
781299069SRyan Stone.\" are met:
881299069SRyan Stone.\" 1. Redistributions of source code must retain the above copyright
981299069SRyan Stone.\"    notice, this list of conditions and the following disclaimer.
1081299069SRyan Stone.\" 2. Redistributions in binary form must reproduce the above copyright
1181299069SRyan Stone.\"    notice, this list of conditions and the following disclaimer in the
1281299069SRyan Stone.\"    documentation and/or other materials provided with the distribution.
1381299069SRyan Stone.\"
1481299069SRyan Stone.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1581299069SRyan Stone.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1681299069SRyan Stone.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1781299069SRyan Stone.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1881299069SRyan Stone.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1981299069SRyan Stone.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2081299069SRyan Stone.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2181299069SRyan Stone.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2281299069SRyan Stone.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2381299069SRyan Stone.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2481299069SRyan Stone.\" SUCH DAMAGE.
2581299069SRyan Stone.\"
2681299069SRyan Stone.\" $FreeBSD$
2781299069SRyan Stone.\"
28*32100375SGordon Bergling.Dd May 31, 2020
2981299069SRyan Stone.Dt IOVCTL 8
3081299069SRyan Stone.Os
3181299069SRyan Stone.Sh NAME
3281299069SRyan Stone.Nm iovctl
3381299069SRyan Stone.Nd "PCI SR-IOV configuration utility"
3481299069SRyan Stone.Sh SYNOPSIS
3581299069SRyan Stone.Nm
3681299069SRyan Stone.Fl C
37*32100375SGordon Bergling.Fl f Ar config-file
3881299069SRyan Stone.Op Fl n
3981299069SRyan Stone.Nm
4081299069SRyan Stone.Fl D
4181299069SRyan Stone.Op Fl f Ar config-file | Fl d Ar device
4281299069SRyan Stone.Op Fl n
4381299069SRyan Stone.Nm
4481299069SRyan Stone.Fl S
4581299069SRyan Stone.Op Fl f Ar config-file | Fl d Ar device
4681299069SRyan Stone.Sh DESCRIPTION
4781299069SRyan StoneThe
4881299069SRyan Stone.Nm
4981299069SRyan Stoneutility creates or destroys PCI Single-Root I/O Virtualization
5081299069SRyan Stone.Pq SR-IOV
5181299069SRyan StoneVirtual Functions
52fe3ff217SPatrick Kelsey.Pq VFs .
5381299069SRyan StoneWhen invoked with the
5481299069SRyan Stone.Fl C
5581299069SRyan Stoneflag,
5681299069SRyan Stone.Nm
5781299069SRyan Stonecreates VFs as children of the Physical Function
5881299069SRyan Stone.Pq PF
5981299069SRyan Stoneconfigured in the specified configuration file.
6081299069SRyan StoneWhen invoked with the
6181299069SRyan Stone.Fl D
6281299069SRyan Stoneflag,
6381299069SRyan Stone.Nm
6481299069SRyan Stonedestroys all VFs that are children of the specified device.
6581299069SRyan StoneAvailable PF devices can be seen in
6681299069SRyan Stone.Pa /dev/iov/ .
6781299069SRyan Stone.Pp
6881299069SRyan StoneThe following options are available:
6981299069SRyan Stone.Bl -tag -width indent
7081299069SRyan Stone.It Fl C
7181299069SRyan StoneEnable SR-IOV on the specified PF device and create VF children.
7281299069SRyan StoneThis operation will fail if the PF already has VF children.
7381299069SRyan StoneThis option must be used in conjunction with the
7481299069SRyan Stone.Fl f
7581299069SRyan Stoneoption.
7681299069SRyan Stone.It Fl d Ar device
7781299069SRyan StoneSpecify the PF device to use for the given operation.
7881299069SRyan Stone.Ar device
7981299069SRyan Stonemay either be the name of a PF device, or a full path name to a node in
8081299069SRyan Stone.Pa /dev/iov/ .
8181299069SRyan StoneThis option may not be used with the
8281299069SRyan Stone.Fl C
8381299069SRyan Stoneoption.
8481299069SRyan Stone.It Fl D
8581299069SRyan StoneDelete all VF children of the specified PF device.
8681299069SRyan StoneThis operation will fail if SR-IOV is not currently enabled on the specified
8781299069SRyan Stonedevice.
8881299069SRyan Stone.It Fl f Ar config-file
8981299069SRyan StoneSpecify the pathname of the configuration file.
9081299069SRyan StoneFor the
9181299069SRyan Stone.Fl C
9281299069SRyan Stoneoption, this file will be used to specify all configuration values.
9381299069SRyan StoneFor the
9481299069SRyan Stone.Fl D
9581299069SRyan Stoneand
9681299069SRyan Stone.Fl S
9781299069SRyan Stoneoptions, this file will only be used to specify the name of the PF device.
9881299069SRyan Stone.Pp
9981299069SRyan StoneSee
10081299069SRyan Stone.Xr iovctl.conf
10181299069SRyan Stonefor a description of the config file format and documentation of the
10281299069SRyan Stoneconfiguration parameters that apply to all PF drivers.
10381299069SRyan StoneSee the PF driver manual page for configuration parameters specific to
10481299069SRyan Stoneparticular hardware.
10581299069SRyan Stone.It Fl n
10681299069SRyan StonePerform a dry-run.
10781299069SRyan StonePerform all validation of the specified action and print what would be done,
10881299069SRyan Stonebut do not perform the actual creation or destruction of VFs.
10981299069SRyan StoneThis option may not be used with the
11081299069SRyan Stone.Fl S
11181299069SRyan Stoneflag.
11281299069SRyan Stone.It Fl S
11381299069SRyan StoneRead the configuration schema from the specified device and print its contents
11481299069SRyan Stoneto stdout.
11581299069SRyan StoneThis action may be used to discover the configuration parameters supported on
11681299069SRyan Stonea given PF device.
11781299069SRyan Stone.El
11881299069SRyan Stone.Sh SEE ALSO
11981299069SRyan Stone.Xr iovctl.conf 5 ,
12081299069SRyan Stone.Xr rc.conf 5
12181299069SRyan Stone.Sh AUTHORS
12281299069SRyan StoneThis manual page was written by
12381299069SRyan Stone.An Ryan Stone Aq Mt rstone@FreeBSD.org .
124