1faa875a4SImre Vadasz.\" Copyright (c) 2011 Bryan Venteicher 2faa875a4SImre Vadasz.\" All rights reserved. 3faa875a4SImre Vadasz.\" 4faa875a4SImre Vadasz.\" Redistribution and use in source and binary forms, with or without 5faa875a4SImre Vadasz.\" modification, are permitted provided that the following conditions 6faa875a4SImre Vadasz.\" are met: 7faa875a4SImre Vadasz.\" 1. Redistributions of source code must retain the above copyright 8faa875a4SImre Vadasz.\" notice, this list of conditions and the following disclaimer. 9faa875a4SImre Vadasz.\" 2. Redistributions in binary form must reproduce the above copyright 10faa875a4SImre Vadasz.\" notice, this list of conditions and the following disclaimer in the 11faa875a4SImre Vadasz.\" documentation and/or other materials provided with the distribution. 12faa875a4SImre Vadasz.\" 13faa875a4SImre Vadasz.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14faa875a4SImre Vadasz.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15faa875a4SImre Vadasz.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16faa875a4SImre Vadasz.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17faa875a4SImre Vadasz.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18faa875a4SImre Vadasz.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19faa875a4SImre Vadasz.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20faa875a4SImre Vadasz.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21faa875a4SImre Vadasz.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22faa875a4SImre Vadasz.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23faa875a4SImre Vadasz.\" SUCH DAMAGE. 24faa875a4SImre Vadasz.\" 25faa875a4SImre Vadasz.\" $FreeBSD: head/share/man/man4/vtnet.4 255112 2013-09-01 04:33:47Z bryanv $ 26faa875a4SImre Vadasz.\" 27*dddbf4cdSImre Vadász.Dd October 17, 2017 28faa875a4SImre Vadasz.Dt VTNET 4 29faa875a4SImre Vadasz.Os 30faa875a4SImre Vadasz.Sh NAME 31faa875a4SImre Vadasz.Nm vtnet 32faa875a4SImre Vadasz.Nd VirtIO Ethernet driver 33faa875a4SImre Vadasz.Sh SYNOPSIS 34faa875a4SImre VadaszTo compile this driver into the kernel, 35faa875a4SImre Vadaszplace the following lines in your 36faa875a4SImre Vadaszkernel configuration file: 37faa875a4SImre Vadasz.Bd -ragged -offset indent 3853373e45SSascha Wildner.Cd "device vtnet" 39faa875a4SImre Vadasz.Ed 40faa875a4SImre Vadasz.Pp 41faa875a4SImre VadaszAlternatively, to load the driver as a 42faa875a4SImre Vadaszmodule at boot time, place the following line in 43faa875a4SImre Vadasz.Xr loader.conf 5 : 44faa875a4SImre Vadasz.Bd -literal -offset indent 45faa875a4SImre Vadaszif_vtnet_load="YES" 46faa875a4SImre Vadasz.Ed 47faa875a4SImre Vadasz.Sh DESCRIPTION 48faa875a4SImre VadaszThe 49faa875a4SImre Vadasz.Nm 50faa875a4SImre Vadaszdevice driver provides support for VirtIO Ethernet devices. 51faa875a4SImre Vadasz.Pp 52faa875a4SImre VadaszIf the hypervisor advertises the appreciate features, the 53faa875a4SImre Vadasz.Nm 54faa875a4SImre Vadaszdriver supports TCP/UDP checksum offload for both transmit and receive, 55faa875a4SImre VadaszTCP segmentation offload (TSO), TCP large receive offload (LRO), and 56faa875a4SImre Vadaszhardware VLAN tag stripping/insertion features, as well as a multicast 57faa875a4SImre Vadaszhash filter, as well as Jumbo Frames (up to 9216 bytes), which can be 58faa875a4SImre Vadaszconfigured via the interface MTU setting. 59faa875a4SImre VadaszSelecting an MTU larger than 1500 bytes with the 60faa875a4SImre Vadasz.Xr ifconfig 8 61faa875a4SImre Vadaszutility configures the adapter to receive and transmit Jumbo Frames. 62faa875a4SImre Vadasz.Pp 63faa875a4SImre VadaszFor more information on configuring this device, see 64faa875a4SImre Vadasz.Xr ifconfig 8 . 65faa875a4SImre Vadasz.Sh LOADER TUNABLES 66faa875a4SImre VadaszTunables can be set at the 67faa875a4SImre Vadasz.Xr loader 8 68faa875a4SImre Vadaszprompt before booting the kernel or stored in 69faa875a4SImre Vadasz.Xr loader.conf 5 . 70faa875a4SImre Vadasz.Bl -tag -width "xxxxxx" 71faa875a4SImre Vadasz.It Va hw.vtnet.csum_disable 72faa875a4SImre Vadasz.\".It Va hw.vtnet. Ns Ar X Ns Va .csum_disable 73faa875a4SImre VadaszThis tunable disables receive and send checksum offload. 74faa875a4SImre VadaszThe default value is 0. 75faa875a4SImre Vadasz.It Va hw.vtnet.tso_disable 76faa875a4SImre Vadasz.\".It Va hw.vtnet. Ns Ar X Ns Va .tso_disable 77faa875a4SImre VadaszThis tunable disables TSO. 78faa875a4SImre VadaszThe default value is 1. 79faa875a4SImre Vadasz.It Va hw.vtnet.lro_disable 80faa875a4SImre Vadasz.\".It Va hw.vtnet. Ns Ar X Ns Va .lro_disable 81faa875a4SImre VadaszThis tunable disables LRO. 82*dddbf4cdSImre VadászThe default value is 0. 83faa875a4SImre Vadasz.\".It Va hw.vtnet.mq_disable 84faa875a4SImre Vadasz.\".It Va hw.vtnet. Ns Ar X Ns Va .mq_disable 85faa875a4SImre Vadasz.\"This tunable disables multiqueue. 86faa875a4SImre Vadasz.\"The default value is 0. 87faa875a4SImre Vadasz.\".It Va hw.vtnet.mq_max_pairs 88faa875a4SImre Vadasz.\".It Va hw.vtnet. Ns Ar X Ns Va .mq_max_pairs 89faa875a4SImre Vadasz.\"This tunable sets the maximum number of transmit and receive queue pairs. 90faa875a4SImre Vadasz.\"Multiple queues are only supported when the Multiqueue feature is negotiated. 91faa875a4SImre Vadasz.\"This driver supports a maximum of 8 queue pairs. 92faa875a4SImre Vadasz.\"The number of queue pairs used is the lesser of the maximum supported by the 93faa875a4SImre Vadasz.\"driver and the hypervisor, the number of CPUs present in the guest, and this 94faa875a4SImre Vadasz.\"tunable if not zero. 95faa875a4SImre Vadasz.\"The default value is 0. 96faa875a4SImre Vadasz.El 97faa875a4SImre Vadasz.Sh SEE ALSO 98faa875a4SImre Vadasz.Xr arp 4 , 995eb65d92SSascha Wildner.Xr ifmedia 4 , 100faa875a4SImre Vadasz.Xr netintro 4 , 101faa875a4SImre Vadasz.Xr ng_ether 4 , 102faa875a4SImre Vadasz.Xr virtio 4 , 103faa875a4SImre Vadasz.Xr vlan 4 , 104faa875a4SImre Vadasz.Xr ifconfig 8 105faa875a4SImre Vadasz.Sh HISTORY 106faa875a4SImre VadaszThe 107faa875a4SImre Vadasz.Nm 108faa875a4SImre Vadaszdriver was written by 109c439f86bSSascha Wildner.An Bryan Venteicher Aq Mt bryanv@FreeBSD.org . 110faa875a4SImre VadaszIt first appeared in 111faa875a4SImre Vadasz.Fx 9.0 . 112faa875a4SImre Vadasz.Sh CAVEATS 113faa875a4SImre VadaszThe 114faa875a4SImre Vadasz.Nm 115faa875a4SImre Vadaszdriver only supports LRO when the hypervisor advertises the 116faa875a4SImre Vadaszmergeable buffer feature. 117*dddbf4cdSImre VadászThe receive checksum offload feature of the 118*dddbf4cdSImre Vadász.Nm 119*dddbf4cdSImre Vadászdriver is masked for now, because of missing support for receive checksum 120*dddbf4cdSImre Vadászoffload in IPv6 packet handling in 121*dddbf4cdSImre Vadász.Dx . 122