|
NAMExnb —
Xen Paravirtualized Backend Ethernet Driver
SYNOPSISTo compile this driver into the kernel, place the following lines in your kernel configuration file:options XENHVM
device xenpci DESCRIPTIONThexnb driver provides the back half of a
paravirtualized
xen(4)
network connection. The netback and netfront drivers appear to their
respective operating systems as Ethernet devices linked by a crossover cable.
Typically, xnb will run on Domain 0 and the netfront
driver will run on a guest domain. However, it is also possible to run
xnb on a guest domain. It may be bridged or routed to
provide the netfront domain access to other guest domains or to a physical
network.
In most respects, the SYSCTL VARIABLESThe following read-only variables are available via sysctl(8):
SEE ALSOarp(4), netintro(4), ng_ether(4), xen(4), ifconfig(8)HISTORYThexnb device driver first appeared in
FreeBSD 10.0.
AUTHORSThexnb driver was written by Alan
Somers
<asomers@FreeBSD.org>
and John Suykerbuyk.
CAVEATSPackets sent through Xennet pass over shared memory, so the protocol includes no form of link-layer checksum or CRC. Furthermore, Xennet drivers always report to their hosts that they support receive and transmit checksum offloading. They "offload" the checksum calculation by simply skipping it. That works fine for packets that are exchanged between two domains on the same machine. However, when a Xennet interface is bridged to a physical interface, a correct checksum must be attached to any packets bound for that physical interface. Currently, FreeBSD lacks any mechanism for an Ethernet device to inform the OS that newly received packets are valid even though their checksums are not. So if the netfront driver is configured to offload checksum calculations, it will pass non-checksumed packets toxnb , which must then calculate the checksum in
software before passing the packet to the OS.
For this reason, it is recommended that if
BUGSThexnb driver does not properly checksum UDP datagrams
that span more than one Ethernet frame. Nor does it correctly checksum IPv6
packets. To workaround that bug, disable transmit checksum offloading on the
netfront driver.
Visit the GSP FreeBSD Man Page Interface. |