xref: /freebsd/usr.sbin/iovctl/iovctl.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.\"
26*32100375SGordon Bergling.Dd May 31, 2020
2781299069SRyan Stone.Dt IOVCTL 8
2881299069SRyan Stone.Os
2981299069SRyan Stone.Sh NAME
3081299069SRyan Stone.Nm iovctl
3181299069SRyan Stone.Nd "PCI SR-IOV configuration utility"
3281299069SRyan Stone.Sh SYNOPSIS
3381299069SRyan Stone.Nm
3481299069SRyan Stone.Fl C
35*32100375SGordon Bergling.Fl f Ar config-file
3681299069SRyan Stone.Op Fl n
3781299069SRyan Stone.Nm
3881299069SRyan Stone.Fl D
3981299069SRyan Stone.Op Fl f Ar config-file | Fl d Ar device
4081299069SRyan Stone.Op Fl n
4181299069SRyan Stone.Nm
4281299069SRyan Stone.Fl S
4381299069SRyan Stone.Op Fl f Ar config-file | Fl d Ar device
4481299069SRyan Stone.Sh DESCRIPTION
4581299069SRyan StoneThe
4681299069SRyan Stone.Nm
4781299069SRyan Stoneutility creates or destroys PCI Single-Root I/O Virtualization
4881299069SRyan Stone.Pq SR-IOV
4981299069SRyan StoneVirtual Functions
50fe3ff217SPatrick Kelsey.Pq VFs .
5181299069SRyan StoneWhen invoked with the
5281299069SRyan Stone.Fl C
5381299069SRyan Stoneflag,
5481299069SRyan Stone.Nm
5581299069SRyan Stonecreates VFs as children of the Physical Function
5681299069SRyan Stone.Pq PF
5781299069SRyan Stoneconfigured in the specified configuration file.
5881299069SRyan StoneWhen invoked with the
5981299069SRyan Stone.Fl D
6081299069SRyan Stoneflag,
6181299069SRyan Stone.Nm
6281299069SRyan Stonedestroys all VFs that are children of the specified device.
6381299069SRyan StoneAvailable PF devices can be seen in
6481299069SRyan Stone.Pa /dev/iov/ .
6581299069SRyan Stone.Pp
6681299069SRyan StoneThe following options are available:
6781299069SRyan Stone.Bl -tag -width indent
6881299069SRyan Stone.It Fl C
6981299069SRyan StoneEnable SR-IOV on the specified PF device and create VF children.
7081299069SRyan StoneThis operation will fail if the PF already has VF children.
7181299069SRyan StoneThis option must be used in conjunction with the
7281299069SRyan Stone.Fl f
7381299069SRyan Stoneoption.
7481299069SRyan Stone.It Fl d Ar device
7581299069SRyan StoneSpecify the PF device to use for the given operation.
7681299069SRyan Stone.Ar device
7781299069SRyan Stonemay either be the name of a PF device, or a full path name to a node in
7881299069SRyan Stone.Pa /dev/iov/ .
7981299069SRyan StoneThis option may not be used with the
8081299069SRyan Stone.Fl C
8181299069SRyan Stoneoption.
8281299069SRyan Stone.It Fl D
8381299069SRyan StoneDelete all VF children of the specified PF device.
8481299069SRyan StoneThis operation will fail if SR-IOV is not currently enabled on the specified
8581299069SRyan Stonedevice.
8681299069SRyan Stone.It Fl f Ar config-file
8781299069SRyan StoneSpecify the pathname of the configuration file.
8881299069SRyan StoneFor the
8981299069SRyan Stone.Fl C
9081299069SRyan Stoneoption, this file will be used to specify all configuration values.
9181299069SRyan StoneFor the
9281299069SRyan Stone.Fl D
9381299069SRyan Stoneand
9481299069SRyan Stone.Fl S
9581299069SRyan Stoneoptions, this file will only be used to specify the name of the PF device.
9681299069SRyan Stone.Pp
9781299069SRyan StoneSee
9881299069SRyan Stone.Xr iovctl.conf
9981299069SRyan Stonefor a description of the config file format and documentation of the
10081299069SRyan Stoneconfiguration parameters that apply to all PF drivers.
10181299069SRyan StoneSee the PF driver manual page for configuration parameters specific to
10281299069SRyan Stoneparticular hardware.
10381299069SRyan Stone.It Fl n
10481299069SRyan StonePerform a dry-run.
10581299069SRyan StonePerform all validation of the specified action and print what would be done,
10681299069SRyan Stonebut do not perform the actual creation or destruction of VFs.
10781299069SRyan StoneThis option may not be used with the
10881299069SRyan Stone.Fl S
10981299069SRyan Stoneflag.
11081299069SRyan Stone.It Fl S
11181299069SRyan StoneRead the configuration schema from the specified device and print its contents
11281299069SRyan Stoneto stdout.
11381299069SRyan StoneThis action may be used to discover the configuration parameters supported on
11481299069SRyan Stonea given PF device.
11581299069SRyan Stone.El
11681299069SRyan Stone.Sh SEE ALSO
11781299069SRyan Stone.Xr iovctl.conf 5 ,
11881299069SRyan Stone.Xr rc.conf 5
11981299069SRyan Stone.Sh AUTHORS
12081299069SRyan StoneThis manual page was written by
12181299069SRyan Stone.An Ryan Stone Aq Mt rstone@FreeBSD.org .
122